public class SynchronizedShortBag extends AbstractSynchronizedShortCollection implements MutableShortBag
MutableShortBag. It is imperative that the user manually synchronize on the collection when iterating over it using the
ShortIterator, as per Collections.synchronizedCollection(Collection).
This file was automatically generated from template file synchronizedPrimitiveBag.stg.
MutableShortBag.asSynchronized(),
MutableBag.asSynchronized(),
Serialized Form| Constructor and Description |
|---|
SynchronizedShortBag(MutableShortBag bag) |
SynchronizedShortBag(MutableShortBag bag,
Object newLock) |
add, addAll, addAll, allSatisfy, anySatisfy, appendString, appendString, appendString, 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, toStringselectDuplicates, tapadd, addAll, addAll, clear, remove, removeAll, removeAll, removeIf, retainAll, retainAll, shortIteratortoStringOfItemToCountallSatisfy, anySatisfy, 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, toSortedListByappendString, appendString, appendString, isEmpty, makeString, makeString, makeString, notEmpty, size, toStringpublic SynchronizedShortBag(MutableShortBag bag)
public SynchronizedShortBag(MutableShortBag bag, Object newLock)
public SynchronizedShortBag with(short element)
with in interface MutableShortBagwith in interface MutableShortCollectionwith in class AbstractSynchronizedShortCollectionpublic SynchronizedShortBag without(short element)
without in interface MutableShortBagwithout in interface MutableShortCollectionwithout in class AbstractSynchronizedShortCollectionpublic SynchronizedShortBag withAll(ShortIterable elements)
withAll in interface MutableShortBagwithAll in interface MutableShortCollectionwithAll in class AbstractSynchronizedShortCollectionpublic SynchronizedShortBag withoutAll(ShortIterable elements)
withoutAll in interface MutableShortBagwithoutAll in interface MutableShortCollectionwithoutAll in class AbstractSynchronizedShortCollectionpublic 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 select(ShortPredicate predicate)
select in interface MutableShortBagselect in interface ShortBagselect in interface MutableShortCollectionselect in interface ShortIterableselect in class AbstractSynchronizedShortCollectionpublic MutableShortBag selectByOccurrences(IntPredicate predicate)
selectByOccurrences in interface MutableShortBagselectByOccurrences in interface ShortBagpublic MutableShortSet selectUnique()
selectUnique in interface MutableShortBagselectUnique 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 reject(ShortPredicate predicate)
reject in interface MutableShortBagreject in interface ShortBagreject in interface MutableShortCollectionreject in interface ShortIterablereject in class AbstractSynchronizedShortCollectionpublic <V> MutableBag<V> collect(ShortToObjectFunction<? extends V> function)
collect in interface MutableShortBagcollect in interface ShortBagcollect in interface MutableShortCollectioncollect in interface ShortIterablecollect in class AbstractSynchronizedShortCollectionpublic boolean equals(Object otherBag)
public int hashCode()
public LazyShortIterable asLazy()
asLazy in interface ShortIterableasLazy in class AbstractSynchronizedShortCollectionpublic MutableShortBag asUnmodifiable()
asUnmodifiable in interface MutableShortBagasUnmodifiable in interface MutableShortCollectionasUnmodifiable in class AbstractSynchronizedShortCollectionpublic MutableShortBag asSynchronized()
asSynchronized in interface MutableShortBagasSynchronized in interface MutableShortCollectionasSynchronized in class AbstractSynchronizedShortCollectionpublic ImmutableShortBag toImmutable()
toImmutable in interface MutableShortBagtoImmutable in interface ShortBagtoImmutable in interface MutableShortCollectiontoImmutable in class AbstractSynchronizedShortCollectionpublic MutableShortBag newEmpty()
newEmpty in interface MutableShortBagnewEmpty in interface MutableShortCollectionCopyright © 2004–2022. All rights reserved.