Class UnmodifiableShortBag
java.lang.Object
org.eclipse.collections.impl.collection.mutable.primitive.AbstractUnmodifiableShortCollection
org.eclipse.collections.impl.bag.mutable.primitive.UnmodifiableShortBag
- All Implemented Interfaces:
Serializable,MutableShortBag,ShortBag,MutableShortCollection,PrimitiveIterable,ShortIterable
public class UnmodifiableShortBag
extends AbstractUnmodifiableShortCollection
implements MutableShortBag
This file was automatically generated from template file unmodifiablePrimitiveBag.stg.
- Since:
- 3.1.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddOccurrences(short item, int occurrences) bottomOccurrences(int count) <V> MutableBag<V>collect(ShortToObjectFunction<? extends V> function) booleanvoidforEachWithOccurrences(ShortIntProcedure procedure) inthashCode()newEmpty()intoccurrencesOf(short item) reject(ShortPredicate predicate) booleanremoveOccurrences(short item, int occurrences) select(ShortPredicate predicate) selectByOccurrences(IntPredicate predicate) inttopOccurrences(int count) with(short element) withAll(ShortIterable elements) without(short element) withoutAll(ShortIterable elements) Methods inherited from class org.eclipse.collections.impl.collection.mutable.primitive.AbstractUnmodifiableShortCollection
add, addAll, addAll, allSatisfy, anySatisfy, appendString, appendString, appendString, asLazy, average, 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, shortIterator, size, sum, toArray, toArray, toBag, toList, toSet, toSortedArray, toSortedList, toStringMethods inherited from interface org.eclipse.collections.api.bag.primitive.MutableShortBag
selectDuplicates, tapMethods inherited from interface org.eclipse.collections.api.collection.primitive.MutableShortCollection
add, addAll, addAll, clear, remove, removeAll, removeAll, removeIf, retainAll, retainAll, shortIteratorMethods inherited from interface org.eclipse.collections.api.PrimitiveIterable
appendString, appendString, appendString, isEmpty, makeString, makeString, makeString, notEmpty, size, toStringMethods inherited from interface org.eclipse.collections.api.bag.primitive.ShortBag
toStringOfItemToCountMethods inherited from interface org.eclipse.collections.api.ShortIterable
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
-
Constructor Details
-
UnmodifiableShortBag
-
-
Method Details
-
with
- Specified by:
within interfaceMutableShortBag- Specified by:
within interfaceMutableShortCollection- Overrides:
within classAbstractUnmodifiableShortCollection
-
without
- Specified by:
withoutin interfaceMutableShortBag- Specified by:
withoutin interfaceMutableShortCollection- Overrides:
withoutin classAbstractUnmodifiableShortCollection
-
withAll
- Specified by:
withAllin interfaceMutableShortBag- Specified by:
withAllin interfaceMutableShortCollection- Overrides:
withAllin classAbstractUnmodifiableShortCollection
-
withoutAll
- Specified by:
withoutAllin interfaceMutableShortBag- Specified by:
withoutAllin interfaceMutableShortCollection- Overrides:
withoutAllin classAbstractUnmodifiableShortCollection
-
addOccurrences
public void addOccurrences(short item, int occurrences) - Specified by:
addOccurrencesin interfaceMutableShortBag
-
removeOccurrences
public boolean removeOccurrences(short item, int occurrences) - Specified by:
removeOccurrencesin interfaceMutableShortBag
-
sizeDistinct
public int sizeDistinct()- Specified by:
sizeDistinctin interfaceShortBag
-
occurrencesOf
public int occurrencesOf(short item) - Specified by:
occurrencesOfin interfaceShortBag
-
forEachWithOccurrences
- Specified by:
forEachWithOccurrencesin interfaceShortBag
-
selectByOccurrences
- Specified by:
selectByOccurrencesin interfaceMutableShortBag- Specified by:
selectByOccurrencesin interfaceShortBag
-
selectUnique
- Specified by:
selectUniquein interfaceMutableShortBag- Specified by:
selectUniquein interfaceShortBag
-
topOccurrences
- Specified by:
topOccurrencesin interfaceMutableShortBag- Specified by:
topOccurrencesin interfaceShortBag
-
bottomOccurrences
- Specified by:
bottomOccurrencesin interfaceMutableShortBag- Specified by:
bottomOccurrencesin interfaceShortBag
-
select
- Specified by:
selectin interfaceMutableShortBag- Specified by:
selectin interfaceMutableShortCollection- Specified by:
selectin interfaceShortBag- Specified by:
selectin interfaceShortIterable- Overrides:
selectin classAbstractUnmodifiableShortCollection
-
reject
- Specified by:
rejectin interfaceMutableShortBag- Specified by:
rejectin interfaceMutableShortCollection- Specified by:
rejectin interfaceShortBag- Specified by:
rejectin interfaceShortIterable- Overrides:
rejectin classAbstractUnmodifiableShortCollection
-
collect
- Specified by:
collectin interfaceMutableShortBag- Specified by:
collectin interfaceMutableShortCollection- Specified by:
collectin interfaceShortBag- Specified by:
collectin interfaceShortIterable- Overrides:
collectin classAbstractUnmodifiableShortCollection
-
equals
-
hashCode
public int hashCode() -
asUnmodifiable
- Specified by:
asUnmodifiablein interfaceMutableShortBag- Specified by:
asUnmodifiablein interfaceMutableShortCollection- Overrides:
asUnmodifiablein classAbstractUnmodifiableShortCollection
-
asSynchronized
- Specified by:
asSynchronizedin interfaceMutableShortBag- Specified by:
asSynchronizedin interfaceMutableShortCollection- Overrides:
asSynchronizedin classAbstractUnmodifiableShortCollection
-
toImmutable
- Specified by:
toImmutablein interfaceMutableShortBag- Specified by:
toImmutablein interfaceMutableShortCollection- Specified by:
toImmutablein interfaceShortBag- Overrides:
toImmutablein classAbstractUnmodifiableShortCollection
-
newEmpty
- Specified by:
newEmptyin interfaceMutableShortBag- Specified by:
newEmptyin interfaceMutableShortCollection- Since:
- 9.2.
-