@NotThreadSafe public final class UnmodifiableShortBag extends AbstractUnmodifiableShortCollection implements org.eclipse.collections.api.bag.primitive.MutableShortBag
| Modifier and Type | Method and Description |
|---|---|
void |
addOccurrences(short item,
int occurrences) |
org.eclipse.collections.api.bag.primitive.MutableShortBag |
asSynchronized() |
org.eclipse.collections.api.bag.primitive.MutableShortBag |
asUnmodifiable() |
<V> org.eclipse.collections.api.bag.MutableBag<V> |
collect(org.eclipse.collections.api.block.function.primitive.ShortToObjectFunction<? extends V> function) |
boolean |
equals(Object otherBag) |
void |
forEachWithOccurrences(org.eclipse.collections.api.block.procedure.primitive.ShortIntProcedure procedure) |
int |
hashCode() |
int |
occurrencesOf(short item) |
org.eclipse.collections.api.bag.primitive.MutableShortBag |
reject(org.eclipse.collections.api.block.predicate.primitive.ShortPredicate predicate) |
boolean |
removeOccurrences(short item,
int occurrences) |
org.eclipse.collections.api.bag.primitive.MutableShortBag |
select(org.eclipse.collections.api.block.predicate.primitive.ShortPredicate predicate) |
int |
sizeDistinct() |
org.eclipse.collections.api.bag.primitive.ImmutableShortBag |
toImmutable() |
UnmodifiableShortBag |
with(short element) |
UnmodifiableShortBag |
withAll(org.eclipse.collections.api.ShortIterable elements) |
UnmodifiableShortBag |
without(short element) |
UnmodifiableShortBag |
withoutAll(org.eclipse.collections.api.ShortIterable elements) |
add, addAll, addAll, allSatisfy, anySatisfy, appendString, appendString, appendString, asLazy, average, clear, contains, containsAll, containsAll, count, detectIfNone, each, forEach, injectInto, isEmpty, makeString, makeString, makeString, max, maxIfEmpty, median, min, minIfEmpty, noneSatisfy, notEmpty, remove, removeAll, removeAll, retainAll, retainAll, shortIterator, size, sum, toArray, toBag, toList, toSet, toSortedArray, toSortedList, toStringadd, addAll, addAll, clear, remove, removeAll, removeAll, retainAll, retainAll, shortIteratorallSatisfy, anySatisfy, asLazy, average, contains, containsAll, containsAll, count, detectIfNone, each, forEach, injectInto, max, maxIfEmpty, median, min, minIfEmpty, noneSatisfy, sum, toArray, toBag, toList, toSet, toSortedArray, toSortedListpublic UnmodifiableShortBag with(short element)
with in interface org.eclipse.collections.api.bag.primitive.MutableShortBagwith in interface org.eclipse.collections.api.collection.primitive.MutableShortCollectionwith in class AbstractUnmodifiableShortCollectionpublic UnmodifiableShortBag without(short element)
without in interface org.eclipse.collections.api.bag.primitive.MutableShortBagwithout in interface org.eclipse.collections.api.collection.primitive.MutableShortCollectionwithout in class AbstractUnmodifiableShortCollectionpublic UnmodifiableShortBag withAll(org.eclipse.collections.api.ShortIterable elements)
withAll in interface org.eclipse.collections.api.bag.primitive.MutableShortBagwithAll in interface org.eclipse.collections.api.collection.primitive.MutableShortCollectionwithAll in class AbstractUnmodifiableShortCollectionpublic UnmodifiableShortBag withoutAll(org.eclipse.collections.api.ShortIterable elements)
withoutAll in interface org.eclipse.collections.api.bag.primitive.MutableShortBagwithoutAll in interface org.eclipse.collections.api.collection.primitive.MutableShortCollectionwithoutAll in class AbstractUnmodifiableShortCollectionpublic void addOccurrences(short item,
int occurrences)
addOccurrences in interface org.eclipse.collections.api.bag.primitive.MutableShortBagpublic boolean removeOccurrences(short item,
int occurrences)
removeOccurrences in interface org.eclipse.collections.api.bag.primitive.MutableShortBagpublic int sizeDistinct()
sizeDistinct in interface org.eclipse.collections.api.bag.primitive.ShortBagpublic int occurrencesOf(short item)
occurrencesOf in interface org.eclipse.collections.api.bag.primitive.ShortBagpublic void forEachWithOccurrences(org.eclipse.collections.api.block.procedure.primitive.ShortIntProcedure procedure)
forEachWithOccurrences in interface org.eclipse.collections.api.bag.primitive.ShortBagpublic org.eclipse.collections.api.bag.primitive.MutableShortBag select(org.eclipse.collections.api.block.predicate.primitive.ShortPredicate predicate)
select in interface org.eclipse.collections.api.bag.primitive.MutableShortBagselect in interface org.eclipse.collections.api.bag.primitive.ShortBagselect in interface org.eclipse.collections.api.collection.primitive.MutableShortCollectionselect in interface org.eclipse.collections.api.ShortIterableselect in class AbstractUnmodifiableShortCollectionpublic org.eclipse.collections.api.bag.primitive.MutableShortBag reject(org.eclipse.collections.api.block.predicate.primitive.ShortPredicate predicate)
reject in interface org.eclipse.collections.api.bag.primitive.MutableShortBagreject in interface org.eclipse.collections.api.bag.primitive.ShortBagreject in interface org.eclipse.collections.api.collection.primitive.MutableShortCollectionreject in interface org.eclipse.collections.api.ShortIterablereject in class AbstractUnmodifiableShortCollectionpublic <V> org.eclipse.collections.api.bag.MutableBag<V> collect(org.eclipse.collections.api.block.function.primitive.ShortToObjectFunction<? extends V> function)
collect in interface org.eclipse.collections.api.bag.primitive.MutableShortBagcollect in interface org.eclipse.collections.api.bag.primitive.ShortBagcollect in interface org.eclipse.collections.api.collection.primitive.MutableShortCollectioncollect in interface org.eclipse.collections.api.ShortIterablecollect in class AbstractUnmodifiableShortCollectionpublic boolean equals(Object otherBag)
public int hashCode()
public org.eclipse.collections.api.bag.primitive.MutableShortBag asUnmodifiable()
asUnmodifiable in interface org.eclipse.collections.api.bag.primitive.MutableShortBagasUnmodifiable in interface org.eclipse.collections.api.collection.primitive.MutableShortCollectionasUnmodifiable in class AbstractUnmodifiableShortCollectionpublic org.eclipse.collections.api.bag.primitive.MutableShortBag asSynchronized()
asSynchronized in interface org.eclipse.collections.api.bag.primitive.MutableShortBagasSynchronized in interface org.eclipse.collections.api.collection.primitive.MutableShortCollectionasSynchronized in class AbstractUnmodifiableShortCollectionpublic org.eclipse.collections.api.bag.primitive.ImmutableShortBag toImmutable()
toImmutable in interface org.eclipse.collections.api.bag.primitive.MutableShortBagtoImmutable in interface org.eclipse.collections.api.bag.primitive.ShortBagtoImmutable in interface org.eclipse.collections.api.collection.primitive.MutableShortCollectiontoImmutable in class AbstractUnmodifiableShortCollectionCopyright © 2004–2018. All rights reserved.