Interface MutableByteCollection
-
- All Superinterfaces:
ByteIterable,PrimitiveIterable
- All Known Subinterfaces:
MutableByteBag,MutableByteList,MutableByteSet
public interface MutableByteCollection extends ByteIterable
This file was automatically generated from template file mutablePrimitiveCollection.stg.- Since:
- 3.0.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description booleanadd(byte element)booleanaddAll(byte... source)booleanaddAll(ByteIterable source)MutableByteCollectionasSynchronized()MutableByteCollectionasUnmodifiable()MutableByteIteratorbyteIterator()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.MutableByteCollectionreject(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)MutableByteCollectionselect(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)ImmutableByteCollectiontoImmutable()MutableByteCollectionwith(byte element)MutableByteCollectionwithAll(ByteIterable elements)MutableByteCollectionwithout(byte element)MutableByteCollectionwithoutAll(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, injectIntoBoolean, injectIntoByte, injectIntoChar, injectIntoDouble, injectIntoFloat, injectIntoInt, injectIntoLong, injectIntoShort, max, maxIfEmpty, median, medianIfEmpty, min, minIfEmpty, noneSatisfy, reduce, reduceIfEmpty, reject, select, sum, summaryStatistics, toArray, toArray, toBag, toList, toSet, toSortedArray, toSortedList, toSortedList, toSortedListBy, toSortedListBy
-
Methods inherited from interface org.eclipse.collections.api.PrimitiveIterable
appendString, appendString, appendString, isEmpty, makeString, makeString, makeString, notEmpty, size, toString
-
-
-
-
Method Detail
-
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
boolean addAll(ByteIterable source)
-
remove
boolean remove(byte value)
-
removeAll
boolean removeAll(ByteIterable source)
-
removeAll
boolean removeAll(byte... source)
-
removeIf
default boolean removeIf(BytePredicate predicate)
- Since:
- 9.1
-
retainAll
boolean retainAll(ByteIterable elements)
- 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
MutableByteCollection select(BytePredicate predicate)
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
MutableByteCollection reject(BytePredicate predicate)
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
<V> MutableCollection<V> collect(ByteToObjectFunction<? extends V> function)
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
MutableByteCollection with(byte element)
-
without
MutableByteCollection without(byte element)
-
withAll
MutableByteCollection withAll(ByteIterable elements)
-
withoutAll
MutableByteCollection withoutAll(ByteIterable elements)
-
asUnmodifiable
MutableByteCollection asUnmodifiable()
-
asSynchronized
MutableByteCollection asSynchronized()
-
toImmutable
ImmutableByteCollection toImmutable()
-
tap
default MutableByteCollection tap(ByteProcedure procedure)
- Specified by:
tapin interfaceByteIterable- Since:
- 9.0.
-
newEmpty
default MutableByteCollection newEmpty()
Creates a new empty mutable version of the same collection type.- Since:
- 9.2.
-
-