Interface MutableByteCollection
- All Superinterfaces:
ByteIterable
,PrimitiveIterable
- All Known Subinterfaces:
MutableByteBag
,MutableByteList
,MutableByteSet
- All Known Implementing Classes:
AbstractMutableByteKeySet
,AbstractSynchronizedByteCollection
,AbstractUnmodifiableByteCollection
,ByteArrayList
,ByteHashBag
,ByteHashSet
,SynchronizedByteBag
,SynchronizedByteCollection
,SynchronizedByteList
,SynchronizedByteSet
,UnmodifiableByteBag
,UnmodifiableByteCollection
,UnmodifiableByteList
,UnmodifiableByteSet
public interface MutableByteCollection extends ByteIterable
This file was automatically generated from template file mutablePrimitiveCollection.stg.
- Since:
- 3.0.
-
Method Summary
Modifier and Type Method Description boolean
add(byte element)
boolean
addAll(byte... source)
boolean
addAll(ByteIterable source)
MutableByteCollection
asSynchronized()
MutableByteCollection
asUnmodifiable()
MutableByteIterator
byteIterator()
Returns a primitive iterator that can be used to iterate over the ByteIterable in an imperative style.void
clear()
<V> MutableCollection<V>
collect(ByteToObjectFunction<? extends V> function)
Returns a new collection with the results of applying the specified function on each element of the source collection.default MutableByteCollection
newEmpty()
Creates a new empty mutable version of the same collection type.MutableByteCollection
reject(BytePredicate predicate)
Returns a new ByteIterable with all of the elements in the ByteIterable that return false for the specified predicate.boolean
remove(byte value)
boolean
removeAll(byte... source)
boolean
removeAll(ByteIterable source)
default boolean
removeIf(BytePredicate predicate)
boolean
retainAll(byte... source)
boolean
retainAll(ByteIterable elements)
MutableByteCollection
select(BytePredicate predicate)
Returns a new ByteIterable with all of the elements in the ByteIterable that return true for the specified predicate.default MutableByteCollection
tap(ByteProcedure procedure)
ImmutableByteCollection
toImmutable()
MutableByteCollection
with(byte element)
MutableByteCollection
withAll(ByteIterable elements)
MutableByteCollection
without(byte element)
MutableByteCollection
withoutAll(ByteIterable elements)
Methods inherited from interface org.eclipse.collections.api.ByteIterable
allSatisfy, anySatisfy, asLazy, average, averageIfEmpty, chunk, collect, collectBoolean, collectByte, collectChar, collectDouble, collectFloat, collectInt, collectLong, collectShort, contains, containsAll, containsAll, count, detectIfNone, each, flatCollect, forEach, injectInto, max, maxIfEmpty, median, medianIfEmpty, min, minIfEmpty, noneSatisfy, reduce, reduceIfEmpty, reject, select, sum, summaryStatistics, toArray, toArray, toBag, toList, toSet, toSortedArray, toSortedList
Methods inherited from interface org.eclipse.collections.api.PrimitiveIterable
appendString, appendString, appendString, isEmpty, makeString, makeString, makeString, notEmpty, size, toString
-
Method Details
-
byteIterator
MutableByteIterator byteIterator()Description copied from interface:ByteIterable
Returns a primitive iterator that can be used to iterate over the ByteIterable in an imperative style.- Specified by:
byteIterator
in interfaceByteIterable
-
add
boolean add(byte element) -
addAll
boolean addAll(byte... source) -
addAll
-
remove
boolean remove(byte value) -
removeAll
-
removeAll
boolean removeAll(byte... source) -
removeIf
- Since:
- 9.1
-
retainAll
- Since:
- 5.0
- See Also:
Collection.retainAll(Collection)
-
retainAll
boolean retainAll(byte... source)- Since:
- 5.0
- See Also:
Collection.retainAll(Collection)
-
clear
void clear() -
select
Description copied from interface:ByteIterable
Returns a new ByteIterable with all of the elements in the ByteIterable that return true for the specified predicate.- Specified by:
select
in interfaceByteIterable
-
reject
Description copied from interface:ByteIterable
Returns a new ByteIterable with all of the elements in the ByteIterable that return false for the specified predicate.- Specified by:
reject
in interfaceByteIterable
-
collect
Description copied from interface:ByteIterable
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.- Specified by:
collect
in interfaceByteIterable
-
with
-
without
-
withAll
-
withoutAll
-
asUnmodifiable
MutableByteCollection asUnmodifiable() -
asSynchronized
MutableByteCollection asSynchronized() -
toImmutable
ImmutableByteCollection toImmutable() -
tap
- Specified by:
tap
in interfaceByteIterable
- Since:
- 9.0.
-
newEmpty
Creates a new empty mutable version of the same collection type.- Since:
- 9.2.
-