Interface MutableByteCollection
-
- All Superinterfaces:
ByteIterable
,PrimitiveIterable
- All Known Subinterfaces:
MutableByteBag
,MutableByteList
,MutableByteSet
- All Known Implementing Classes:
AbstractMutableByteKeySet
,AbstractMutableByteValuesMap.AbstractByteValuesCollection
,AbstractSynchronizedByteCollection
,AbstractUnmodifiableByteCollection
,ByteArrayList
,ByteBooleanHashMap.KeySet
,ByteByteHashMap.KeySet
,ByteByteHashMap.ValuesCollection
,ByteCharHashMap.KeySet
,ByteDoubleHashMap.KeySet
,ByteFloatHashMap.KeySet
,ByteHashBag
,ByteHashSet
,ByteIntHashMap.KeySet
,ByteLongHashMap.KeySet
,ByteObjectHashMap.KeySet
,ByteShortHashMap.KeySet
,CharByteHashMap.ValuesCollection
,DoubleByteHashMap.ValuesCollection
,FloatByteHashMap.ValuesCollection
,IntByteHashMap.ValuesCollection
,LongByteHashMap.ValuesCollection
,ObjectByteHashMap.ValuesCollection
,ObjectByteHashMapWithHashingStrategy.ValuesCollection
,ShortByteHashMap.ValuesCollection
,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
All Methods Instance Methods Abstract Methods Default Methods 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, 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: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
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: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
MutableByteCollection reject(BytePredicate predicate)
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
<V> MutableCollection<V> collect(ByteToObjectFunction<? extends V> function)
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
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:
tap
in interfaceByteIterable
- Since:
- 9.0.
-
newEmpty
default MutableByteCollection newEmpty()
Creates a new empty mutable version of the same collection type.- Since:
- 9.2.
-
-