Top Description Methods
org.eclipse.collections.api.collection.primitive

public Interface MutableByteCollection

extends ByteIterable
Known Direct Subinterfaces
org.eclipse.collections.api.list.primitive.MutableByteList, org.eclipse.collections.api.set.primitive.MutableByteSet, org.eclipse.collections.api.bag.primitive.MutableByteBag
Imports
java.util.Collection, org.eclipse.collections.api.ByteIterable, org.eclipse.collections.api.block.function.primitive.ByteToObjectFunction, org.eclipse.collections.api.block.predicate.primitive.BytePredicate, org.eclipse.collections.api.block.procedure.primitive.ByteProcedure, org.eclipse.collections.api.iterator.MutableByteIterator, org.eclipse.collections.api.collection.MutableCollection

This file was automatically generated from template file mutablePrimitiveCollection.stg.
Since
3.0.

Method Summary

Modifier and TypeMethod and Description
public boolean
add(byte element)

public boolean
addAll(byte... source)

public boolean
public MutableByteCollection
public MutableByteCollection
public MutableByteIterator
byteIterator()

Redeclares org.eclipse.collections.api.ByteIterable.byteIterator.

Returns a primitive iterator that can be used to iterate over the ByteIterable in an imperative style.

public void
public <V> MutableCollection<V>
collect(ByteToObjectFunction<? extends V> function)

Redeclares org.eclipse.collections.api.ByteIterable.collect.

Returns a new collection with the results of applying the specified function on each element of the source collection.

public default MutableByteCollection
newEmpty()

Creates a new empty mutable version of the same collection type.

public MutableByteCollection
reject(BytePredicate predicate)

Redeclares org.eclipse.collections.api.ByteIterable.reject.

Returns a new ByteIterable with all of the elements in the ByteIterable that return false for the specified predicate.

public boolean
remove(byte value)

public boolean
public boolean
removeAll(byte... source)

public default boolean
public boolean
public boolean
retainAll(byte... source)

public MutableByteCollection
select(BytePredicate predicate)

Redeclares org.eclipse.collections.api.ByteIterable.select.

Returns a new ByteIterable with all of the elements in the ByteIterable that return true for the specified predicate.

public default MutableByteCollection
public ImmutableByteCollection
public MutableByteCollection
with(byte element)

public MutableByteCollection
public MutableByteCollection
without(byte element)

public MutableByteCollection
Inherited from org.eclipse.collections.api.ByteIterable:
allSatisfyanySatisfyasLazyaverageaverageIfEmptychunkcollectcollectBooleancollectBytecollectCharcollectDoublecollectFloatcollectIntcollectLongcollectShortcontainscontainsAllcontainsAllcontainsAnycontainsAnycontainsNonecontainsNonecountdetectIfNoneeachflatCollectforEachinjectIntoinjectIntoBooleaninjectIntoByteinjectIntoCharinjectIntoDoubleinjectIntoFloatinjectIntoIntinjectIntoLonginjectIntoShortmaxmaxIfEmptymedianmedianIfEmptyminminIfEmptynoneSatisfyreducereduceIfEmptyrejectselectsumsummaryStatisticstoArraytoArraytoBagtoListtoSettoSortedArraytoSortedListtoSortedListtoSortedListBytoSortedListBy

Method Detail

addback to summary
public boolean add(byte element)
addAllback to summary
public boolean addAll(byte... source)
addAllback to summary
public boolean addAll(ByteIterable source)
asSynchronizedback to summary
public MutableByteCollection asSynchronized()
asUnmodifiableback to summary
public MutableByteCollection asUnmodifiable()
byteIteratorback to summary
public MutableByteIterator byteIterator()

Redeclares org.eclipse.collections.api.ByteIterable.byteIterator.

Doc from org.eclipse.collections.api.ByteIterable.byteIterator.

Returns a primitive iterator that can be used to iterate over the ByteIterable in an imperative style.

Annotations
@Override
clearback to summary
public void clear()
collectback to summary
public <V> MutableCollection<V> collect(ByteToObjectFunction<? extends V> function)

Redeclares org.eclipse.collections.api.ByteIterable.collect.

Doc from org.eclipse.collections.api.ByteIterable.collect.

Returns a new collection with the results of applying the specified function on each element of the source collection. This method is also commonly called transform or map.

newEmptyback to summary
public default MutableByteCollection newEmpty()

Creates a new empty mutable version of the same collection type.

Since
9.2.
rejectback to summary
public MutableByteCollection reject(BytePredicate predicate)

Redeclares org.eclipse.collections.api.ByteIterable.reject.

Doc from org.eclipse.collections.api.ByteIterable.reject.

Returns a new ByteIterable with all of the elements in the ByteIterable that return false for the specified predicate.

Annotations
@Override
removeback to summary
public boolean remove(byte value)
removeAllback to summary
public boolean removeAll(ByteIterable source)
removeAllback to summary
public boolean removeAll(byte... source)
removeIfback to summary
public default boolean removeIf(BytePredicate predicate)
Since
9.1
retainAllback to summary
public boolean retainAll(ByteIterable elements)
Since
5.0
See Also
Collection#retainAll(Collection)
retainAllback to summary
public boolean retainAll(byte... source)
Since
5.0
See Also
Collection#retainAll(Collection)
selectback to summary
public MutableByteCollection select(BytePredicate predicate)

Redeclares org.eclipse.collections.api.ByteIterable.select.

Doc from org.eclipse.collections.api.ByteIterable.select.

Returns a new ByteIterable with all of the elements in the ByteIterable that return true for the specified predicate.

Annotations
@Override
tapback to summary
public default MutableByteCollection tap(ByteProcedure procedure)

Overrides default org.eclipse.collections.api.ByteIterable.tap.

Annotations
@Override
Since
9.0.
toImmutableback to summary
public ImmutableByteCollection toImmutable()
withback to summary
public MutableByteCollection with(byte element)
withAllback to summary
public MutableByteCollection withAll(ByteIterable elements)
withoutback to summary
public MutableByteCollection without(byte element)
withoutAllback to summary
public MutableByteCollection withoutAll(ByteIterable elements)