public final class UnmodifiableShortBag extends AbstractUnmodifiableShortCollection implements MutableShortBag
| Constructor and Description |
|---|
UnmodifiableShortBag(MutableShortBag bag) |
| Modifier and Type | Method and Description |
|---|---|
void |
addOccurrences(short item,
int occurrences) |
MutableShortBag |
asSynchronized() |
MutableShortBag |
asUnmodifiable() |
MutableList<ShortIntPair> |
bottomOccurrences(int count) |
<V> MutableBag<V> |
collect(ShortToObjectFunction<? extends V> function) |
boolean |
equals(Object otherBag) |
void |
forEachWithOccurrences(ShortIntProcedure procedure) |
int |
hashCode() |
int |
occurrencesOf(short item) |
MutableShortBag |
reject(ShortPredicate predicate) |
boolean |
removeOccurrences(short item,
int occurrences) |
MutableShortBag |
select(ShortPredicate predicate) |
MutableShortBag |
selectByOccurrences(IntPredicate predicate) |
int |
sizeDistinct() |
ImmutableShortBag |
toImmutable() |
MutableList<ShortIntPair> |
topOccurrences(int count) |
UnmodifiableShortBag |
with(short element) |
UnmodifiableShortBag |
withAll(ShortIterable elements) |
UnmodifiableShortBag |
without(short element) |
UnmodifiableShortBag |
withoutAll(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, toStringtapadd, addAll, addAll, clear, remove, removeAll, removeAll, retainAll, retainAll, shortIteratorallSatisfy, anySatisfy, asLazy, average, averageIfEmpty, collect, collectBoolean, collectByte, collectChar, collectDouble, collectFloat, collectInt, collectLong, collectShort, contains, containsAll, containsAll, count, detectIfNone, each, flatCollect, forEach, injectInto, max, maxIfEmpty, median, medianIfEmpty, min, minIfEmpty, noneSatisfy, reject, select, sum, summaryStatistics, toArray, toBag, toList, toSet, toSortedArray, toSortedListappendString, appendString, appendString, isEmpty, makeString, makeString, makeString, notEmpty, size, toStringpublic UnmodifiableShortBag(MutableShortBag bag)
public UnmodifiableShortBag with(short element)
with in interface MutableShortBagwith in interface MutableShortCollectionwith in class AbstractUnmodifiableShortCollectionpublic UnmodifiableShortBag without(short element)
without in interface MutableShortBagwithout in interface MutableShortCollectionwithout in class AbstractUnmodifiableShortCollectionpublic UnmodifiableShortBag withAll(ShortIterable elements)
withAll in interface MutableShortBagwithAll in interface MutableShortCollectionwithAll in class AbstractUnmodifiableShortCollectionpublic UnmodifiableShortBag withoutAll(ShortIterable elements)
withoutAll in interface MutableShortBagwithoutAll in interface MutableShortCollectionwithoutAll in class AbstractUnmodifiableShortCollectionpublic void addOccurrences(short item,
int occurrences)
addOccurrences in interface MutableShortBagpublic boolean removeOccurrences(short item,
int occurrences)
removeOccurrences in interface MutableShortBagpublic int sizeDistinct()
sizeDistinct in interface ShortBagpublic int occurrencesOf(short item)
occurrencesOf in interface ShortBagpublic void forEachWithOccurrences(ShortIntProcedure procedure)
forEachWithOccurrences in interface ShortBagpublic MutableShortBag selectByOccurrences(IntPredicate predicate)
selectByOccurrences in interface MutableShortBagselectByOccurrences in interface ShortBagpublic MutableList<ShortIntPair> topOccurrences(int count)
topOccurrences in interface MutableShortBagtopOccurrences in interface ShortBagpublic MutableList<ShortIntPair> bottomOccurrences(int count)
bottomOccurrences in interface MutableShortBagbottomOccurrences in interface ShortBagpublic MutableShortBag select(ShortPredicate predicate)
select in interface MutableShortBagselect in interface ShortBagselect in interface MutableShortCollectionselect in interface ShortIterableselect in class AbstractUnmodifiableShortCollectionpublic MutableShortBag reject(ShortPredicate predicate)
reject in interface MutableShortBagreject in interface ShortBagreject in interface MutableShortCollectionreject in interface ShortIterablereject in class AbstractUnmodifiableShortCollectionpublic <V> MutableBag<V> collect(ShortToObjectFunction<? extends V> function)
collect in interface MutableShortBagcollect in interface ShortBagcollect in interface MutableShortCollectioncollect in interface ShortIterablecollect in class AbstractUnmodifiableShortCollectionpublic boolean equals(Object otherBag)
public int hashCode()
public MutableShortBag asUnmodifiable()
asUnmodifiable in interface MutableShortBagasUnmodifiable in interface MutableShortCollectionasUnmodifiable in class AbstractUnmodifiableShortCollectionpublic MutableShortBag asSynchronized()
asSynchronized in interface MutableShortBagasSynchronized in interface MutableShortCollectionasSynchronized in class AbstractUnmodifiableShortCollectionpublic ImmutableShortBag toImmutable()
toImmutable in interface MutableShortBagtoImmutable in interface ShortBagtoImmutable in interface MutableShortCollectiontoImmutable in class AbstractUnmodifiableShortCollectionCopyright © 2004–2017. All rights reserved.