@ThreadSafe public final class SynchronizedIntBag extends AbstractSynchronizedIntCollection implements org.eclipse.collections.api.bag.primitive.MutableIntBag
MutableIntBag. It is imperative that the user manually synchronize on the collection when iterating over it using the
IntIterator, as per Collections.synchronizedCollection(Collection).
This file was automatically generated from template file synchronizedPrimitiveBag.stg.
MutableIntBag.asSynchronized(),
MutableBag.asSynchronized(),
Serialized Form| Modifier and Type | Method and Description |
|---|---|
void |
addOccurrences(int item,
int occurrences) |
org.eclipse.collections.api.LazyIntIterable |
asLazy() |
org.eclipse.collections.api.bag.primitive.MutableIntBag |
asSynchronized() |
org.eclipse.collections.api.bag.primitive.MutableIntBag |
asUnmodifiable() |
<V> org.eclipse.collections.api.bag.MutableBag<V> |
collect(org.eclipse.collections.api.block.function.primitive.IntToObjectFunction<? extends V> function) |
boolean |
equals(Object otherBag) |
void |
forEachWithOccurrences(org.eclipse.collections.api.block.procedure.primitive.IntIntProcedure procedure) |
int |
hashCode() |
int |
occurrencesOf(int item) |
org.eclipse.collections.api.bag.primitive.MutableIntBag |
reject(org.eclipse.collections.api.block.predicate.primitive.IntPredicate predicate) |
boolean |
removeOccurrences(int item,
int occurrences) |
org.eclipse.collections.api.bag.primitive.MutableIntBag |
select(org.eclipse.collections.api.block.predicate.primitive.IntPredicate predicate) |
int |
sizeDistinct() |
org.eclipse.collections.api.bag.primitive.ImmutableIntBag |
toImmutable() |
SynchronizedIntBag |
with(int element) |
SynchronizedIntBag |
withAll(org.eclipse.collections.api.IntIterable elements) |
SynchronizedIntBag |
without(int element) |
SynchronizedIntBag |
withoutAll(org.eclipse.collections.api.IntIterable elements) |
add, addAll, addAll, allSatisfy, anySatisfy, appendString, appendString, appendString, average, clear, contains, containsAll, containsAll, count, detectIfNone, each, forEach, injectInto, intIterator, isEmpty, makeString, makeString, makeString, max, maxIfEmpty, median, min, minIfEmpty, noneSatisfy, notEmpty, remove, removeAll, removeAll, retainAll, retainAll, size, sum, toArray, toBag, toList, toSet, toSortedArray, toSortedList, toStringadd, addAll, addAll, clear, intIterator, remove, removeAll, removeAll, retainAll, retainAllallSatisfy, anySatisfy, average, contains, containsAll, containsAll, count, detectIfNone, each, forEach, injectInto, max, maxIfEmpty, median, min, minIfEmpty, noneSatisfy, sum, toArray, toBag, toList, toSet, toSortedArray, toSortedListpublic SynchronizedIntBag with(int element)
with in interface org.eclipse.collections.api.bag.primitive.MutableIntBagwith in interface org.eclipse.collections.api.collection.primitive.MutableIntCollectionwith in class AbstractSynchronizedIntCollectionpublic SynchronizedIntBag without(int element)
without in interface org.eclipse.collections.api.bag.primitive.MutableIntBagwithout in interface org.eclipse.collections.api.collection.primitive.MutableIntCollectionwithout in class AbstractSynchronizedIntCollectionpublic SynchronizedIntBag withAll(org.eclipse.collections.api.IntIterable elements)
withAll in interface org.eclipse.collections.api.bag.primitive.MutableIntBagwithAll in interface org.eclipse.collections.api.collection.primitive.MutableIntCollectionwithAll in class AbstractSynchronizedIntCollectionpublic SynchronizedIntBag withoutAll(org.eclipse.collections.api.IntIterable elements)
withoutAll in interface org.eclipse.collections.api.bag.primitive.MutableIntBagwithoutAll in interface org.eclipse.collections.api.collection.primitive.MutableIntCollectionwithoutAll in class AbstractSynchronizedIntCollectionpublic void addOccurrences(int item,
int occurrences)
addOccurrences in interface org.eclipse.collections.api.bag.primitive.MutableIntBagpublic boolean removeOccurrences(int item,
int occurrences)
removeOccurrences in interface org.eclipse.collections.api.bag.primitive.MutableIntBagpublic int sizeDistinct()
sizeDistinct in interface org.eclipse.collections.api.bag.primitive.IntBagpublic int occurrencesOf(int item)
occurrencesOf in interface org.eclipse.collections.api.bag.primitive.IntBagpublic void forEachWithOccurrences(org.eclipse.collections.api.block.procedure.primitive.IntIntProcedure procedure)
forEachWithOccurrences in interface org.eclipse.collections.api.bag.primitive.IntBagpublic org.eclipse.collections.api.bag.primitive.MutableIntBag select(org.eclipse.collections.api.block.predicate.primitive.IntPredicate predicate)
select in interface org.eclipse.collections.api.bag.primitive.IntBagselect in interface org.eclipse.collections.api.bag.primitive.MutableIntBagselect in interface org.eclipse.collections.api.collection.primitive.MutableIntCollectionselect in interface org.eclipse.collections.api.IntIterableselect in class AbstractSynchronizedIntCollectionpublic org.eclipse.collections.api.bag.primitive.MutableIntBag reject(org.eclipse.collections.api.block.predicate.primitive.IntPredicate predicate)
reject in interface org.eclipse.collections.api.bag.primitive.IntBagreject in interface org.eclipse.collections.api.bag.primitive.MutableIntBagreject in interface org.eclipse.collections.api.collection.primitive.MutableIntCollectionreject in interface org.eclipse.collections.api.IntIterablereject in class AbstractSynchronizedIntCollectionpublic <V> org.eclipse.collections.api.bag.MutableBag<V> collect(org.eclipse.collections.api.block.function.primitive.IntToObjectFunction<? extends V> function)
collect in interface org.eclipse.collections.api.bag.primitive.IntBagcollect in interface org.eclipse.collections.api.bag.primitive.MutableIntBagcollect in interface org.eclipse.collections.api.collection.primitive.MutableIntCollectioncollect in interface org.eclipse.collections.api.IntIterablecollect in class AbstractSynchronizedIntCollectionpublic boolean equals(Object otherBag)
public int hashCode()
public org.eclipse.collections.api.LazyIntIterable asLazy()
asLazy in interface org.eclipse.collections.api.IntIterableasLazy in class AbstractSynchronizedIntCollectionpublic org.eclipse.collections.api.bag.primitive.MutableIntBag asUnmodifiable()
asUnmodifiable in interface org.eclipse.collections.api.bag.primitive.MutableIntBagasUnmodifiable in interface org.eclipse.collections.api.collection.primitive.MutableIntCollectionasUnmodifiable in class AbstractSynchronizedIntCollectionpublic org.eclipse.collections.api.bag.primitive.MutableIntBag asSynchronized()
asSynchronized in interface org.eclipse.collections.api.bag.primitive.MutableIntBagasSynchronized in interface org.eclipse.collections.api.collection.primitive.MutableIntCollectionasSynchronized in class AbstractSynchronizedIntCollectionpublic org.eclipse.collections.api.bag.primitive.ImmutableIntBag toImmutable()
toImmutable in interface org.eclipse.collections.api.bag.primitive.IntBagtoImmutable in interface org.eclipse.collections.api.bag.primitive.MutableIntBagtoImmutable in interface org.eclipse.collections.api.collection.primitive.MutableIntCollectiontoImmutable in class AbstractSynchronizedIntCollectionCopyright © 2004–2017. All rights reserved.