Class UnmodifiableByteBag
- java.lang.Object
-
- org.eclipse.collections.impl.collection.mutable.primitive.AbstractUnmodifiableByteCollection
-
- org.eclipse.collections.impl.bag.mutable.primitive.UnmodifiableByteBag
-
- All Implemented Interfaces:
Serializable
,ByteBag
,MutableByteBag
,ByteIterable
,MutableByteCollection
,PrimitiveIterable
public class UnmodifiableByteBag extends AbstractUnmodifiableByteCollection implements MutableByteBag
This file was automatically generated from template file unmodifiablePrimitiveBag.stg.- Since:
- 3.1.
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description UnmodifiableByteBag(MutableByteBag bag)
-
Method Summary
-
Methods inherited from class org.eclipse.collections.impl.collection.mutable.primitive.AbstractUnmodifiableByteCollection
add, addAll, addAll, allSatisfy, anySatisfy, appendString, appendString, appendString, asLazy, average, byteIterator, chunk, clear, contains, containsAll, containsAll, containsAny, containsAny, containsNone, containsNone, count, detectIfNone, each, injectInto, isEmpty, makeString, makeString, makeString, max, maxIfEmpty, median, min, minIfEmpty, noneSatisfy, notEmpty, reduce, reduceIfEmpty, remove, removeAll, removeAll, removeIf, retainAll, retainAll, size, sum, toArray, toArray, toBag, toList, toSet, toSortedArray, toSortedList, toString
-
Methods inherited from interface org.eclipse.collections.api.bag.primitive.ByteBag
toStringOfItemToCount
-
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.bag.primitive.MutableByteBag
selectDuplicates, tap
-
Methods inherited from interface org.eclipse.collections.api.collection.primitive.MutableByteCollection
add, addAll, addAll, byteIterator, clear, remove, removeAll, removeAll, removeIf, retainAll, retainAll
-
Methods inherited from interface org.eclipse.collections.api.PrimitiveIterable
appendString, appendString, appendString, isEmpty, makeString, makeString, makeString, notEmpty, size, toString
-
-
-
-
Constructor Detail
-
UnmodifiableByteBag
public UnmodifiableByteBag(MutableByteBag bag)
-
-
Method Detail
-
with
public UnmodifiableByteBag with(byte element)
- Specified by:
with
in interfaceMutableByteBag
- Specified by:
with
in interfaceMutableByteCollection
- Overrides:
with
in classAbstractUnmodifiableByteCollection
-
without
public UnmodifiableByteBag without(byte element)
- Specified by:
without
in interfaceMutableByteBag
- Specified by:
without
in interfaceMutableByteCollection
- Overrides:
without
in classAbstractUnmodifiableByteCollection
-
withAll
public UnmodifiableByteBag withAll(ByteIterable elements)
- Specified by:
withAll
in interfaceMutableByteBag
- Specified by:
withAll
in interfaceMutableByteCollection
- Overrides:
withAll
in classAbstractUnmodifiableByteCollection
-
withoutAll
public UnmodifiableByteBag withoutAll(ByteIterable elements)
- Specified by:
withoutAll
in interfaceMutableByteBag
- Specified by:
withoutAll
in interfaceMutableByteCollection
- Overrides:
withoutAll
in classAbstractUnmodifiableByteCollection
-
addOccurrences
public void addOccurrences(byte item, int occurrences)
- Specified by:
addOccurrences
in interfaceMutableByteBag
-
removeOccurrences
public boolean removeOccurrences(byte item, int occurrences)
- Specified by:
removeOccurrences
in interfaceMutableByteBag
-
sizeDistinct
public int sizeDistinct()
- Specified by:
sizeDistinct
in interfaceByteBag
-
occurrencesOf
public int occurrencesOf(byte item)
- Specified by:
occurrencesOf
in interfaceByteBag
-
forEachWithOccurrences
public void forEachWithOccurrences(ByteIntProcedure procedure)
- Specified by:
forEachWithOccurrences
in interfaceByteBag
-
selectByOccurrences
public MutableByteBag selectByOccurrences(IntPredicate predicate)
- Specified by:
selectByOccurrences
in interfaceByteBag
- Specified by:
selectByOccurrences
in interfaceMutableByteBag
-
selectUnique
public MutableByteSet selectUnique()
- Specified by:
selectUnique
in interfaceByteBag
- Specified by:
selectUnique
in interfaceMutableByteBag
-
topOccurrences
public MutableList<ByteIntPair> topOccurrences(int count)
- Specified by:
topOccurrences
in interfaceByteBag
- Specified by:
topOccurrences
in interfaceMutableByteBag
-
bottomOccurrences
public MutableList<ByteIntPair> bottomOccurrences(int count)
- Specified by:
bottomOccurrences
in interfaceByteBag
- Specified by:
bottomOccurrences
in interfaceMutableByteBag
-
select
public MutableByteBag select(BytePredicate predicate)
- Specified by:
select
in interfaceByteBag
- Specified by:
select
in interfaceByteIterable
- Specified by:
select
in interfaceMutableByteBag
- Specified by:
select
in interfaceMutableByteCollection
- Overrides:
select
in classAbstractUnmodifiableByteCollection
-
reject
public MutableByteBag reject(BytePredicate predicate)
- Specified by:
reject
in interfaceByteBag
- Specified by:
reject
in interfaceByteIterable
- Specified by:
reject
in interfaceMutableByteBag
- Specified by:
reject
in interfaceMutableByteCollection
- Overrides:
reject
in classAbstractUnmodifiableByteCollection
-
collect
public <V> MutableBag<V> collect(ByteToObjectFunction<? extends V> function)
- Specified by:
collect
in interfaceByteBag
- Specified by:
collect
in interfaceByteIterable
- Specified by:
collect
in interfaceMutableByteBag
- Specified by:
collect
in interfaceMutableByteCollection
- Overrides:
collect
in classAbstractUnmodifiableByteCollection
-
equals
public boolean equals(Object otherBag)
-
hashCode
public int hashCode()
-
asUnmodifiable
public MutableByteBag asUnmodifiable()
- Specified by:
asUnmodifiable
in interfaceMutableByteBag
- Specified by:
asUnmodifiable
in interfaceMutableByteCollection
- Overrides:
asUnmodifiable
in classAbstractUnmodifiableByteCollection
-
asSynchronized
public MutableByteBag asSynchronized()
- Specified by:
asSynchronized
in interfaceMutableByteBag
- Specified by:
asSynchronized
in interfaceMutableByteCollection
- Overrides:
asSynchronized
in classAbstractUnmodifiableByteCollection
-
toImmutable
public ImmutableByteBag toImmutable()
- Specified by:
toImmutable
in interfaceByteBag
- Specified by:
toImmutable
in interfaceMutableByteBag
- Specified by:
toImmutable
in interfaceMutableByteCollection
- Overrides:
toImmutable
in classAbstractUnmodifiableByteCollection
-
newEmpty
public MutableByteBag newEmpty()
- Specified by:
newEmpty
in interfaceMutableByteBag
- Specified by:
newEmpty
in interfaceMutableByteCollection
- Since:
- 9.2.
-
-