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
This file was automatically generated from template file mutablePrimitiveCollection.stg.
- Since:
- 3.0.
-
Method Summary
Modifier and TypeMethodDescriptionbooleanadd(byte element) booleanaddAll(byte... source) booleanaddAll(ByteIterable source) Returns a primitive iterator that can be used to iterate over the ByteIterable in an imperative style.voidclear()<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 MutableByteCollectionnewEmpty()Creates a new empty mutable version of the same collection type.reject(BytePredicate predicate) Returns a new ByteIterable with all of the elements in the ByteIterable that return false for the specified predicate.booleanremove(byte value) booleanremoveAll(byte... source) booleanremoveAll(ByteIterable source) default booleanremoveIf(BytePredicate predicate) booleanretainAll(byte... source) booleanretainAll(ByteIterable elements) select(BytePredicate predicate) Returns a new ByteIterable with all of the elements in the ByteIterable that return true for the specified predicate.default MutableByteCollectiontap(ByteProcedure procedure) with(byte element) withAll(ByteIterable elements) without(byte element) 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, containsAny, containsAny, containsNone, containsNone, 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, toSortedList, toSortedListBy, toSortedListByMethods 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:ByteIterableReturns a primitive iterator that can be used to iterate over the ByteIterable in an imperative style.- Specified by:
byteIteratorin 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:
-
retainAll
boolean retainAll(byte... source) - Since:
- 5.0
- See Also:
-
clear
void clear() -
select
Description copied from interface:ByteIterableReturns a new ByteIterable with all of the elements in the ByteIterable that return true for the specified predicate.- Specified by:
selectin interfaceByteIterable
-
reject
Description copied from interface:ByteIterableReturns a new ByteIterable with all of the elements in the ByteIterable that return false for the specified predicate.- Specified by:
rejectin interfaceByteIterable
-
collect
Description copied from interface:ByteIterableReturns 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:
collectin interfaceByteIterable
-
with
-
without
-
withAll
-
withoutAll
-
asUnmodifiable
MutableByteCollection asUnmodifiable() -
asSynchronized
MutableByteCollection asSynchronized() -
toImmutable
ImmutableByteCollection toImmutable() -
tap
- Specified by:
tapin interfaceByteIterable- Since:
- 9.0.
-
newEmpty
Creates a new empty mutable version of the same collection type.- Since:
- 9.2.
-