@ThreadSafe public final class SynchronizedShortBag extends AbstractSynchronizedShortCollection implements org.eclipse.collections.api.bag.primitive.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| Modifier and Type | Method and Description |
|---|---|
void |
addOccurrences(short item,
int occurrences) |
org.eclipse.collections.api.LazyShortIterable |
asLazy() |
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() |
SynchronizedShortBag |
with(short element) |
SynchronizedShortBag |
withAll(org.eclipse.collections.api.ShortIterable elements) |
SynchronizedShortBag |
without(short element) |
SynchronizedShortBag |
withoutAll(org.eclipse.collections.api.ShortIterable elements) |
add, addAll, addAll, allSatisfy, anySatisfy, appendString, appendString, appendString, 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, average, contains, containsAll, containsAll, count, detectIfNone, each, forEach, injectInto, max, maxIfEmpty, median, min, minIfEmpty, noneSatisfy, sum, toArray, toBag, toList, toSet, toSortedArray, toSortedListpublic SynchronizedShortBag with(short element)
with in interface org.eclipse.collections.api.bag.primitive.MutableShortBagwith in interface org.eclipse.collections.api.collection.primitive.MutableShortCollectionwith in class AbstractSynchronizedShortCollectionpublic SynchronizedShortBag without(short element)
without in interface org.eclipse.collections.api.bag.primitive.MutableShortBagwithout in interface org.eclipse.collections.api.collection.primitive.MutableShortCollectionwithout in class AbstractSynchronizedShortCollectionpublic SynchronizedShortBag 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 AbstractSynchronizedShortCollectionpublic SynchronizedShortBag 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 AbstractSynchronizedShortCollectionpublic 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 AbstractSynchronizedShortCollectionpublic 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 AbstractSynchronizedShortCollectionpublic <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 AbstractSynchronizedShortCollectionpublic boolean equals(Object otherBag)
public int hashCode()
public org.eclipse.collections.api.LazyShortIterable asLazy()
asLazy in interface org.eclipse.collections.api.ShortIterableasLazy in class AbstractSynchronizedShortCollectionpublic 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 AbstractSynchronizedShortCollectionpublic 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 AbstractSynchronizedShortCollectionpublic 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 AbstractSynchronizedShortCollectionCopyright © 2004–2018. All rights reserved.