@ThreadSafe public final class SynchronizedLongBag extends AbstractSynchronizedLongCollection implements org.eclipse.collections.api.bag.primitive.MutableLongBag
MutableLongBag. It is imperative that the user manually synchronize on the collection when iterating over it using the
LongIterator, as per Collections.synchronizedCollection(Collection).
This file was automatically generated from template file synchronizedPrimitiveBag.stg.
MutableLongBag.asSynchronized(),
MutableBag.asSynchronized(),
Serialized Form| Modifier and Type | Method and Description |
|---|---|
void |
addOccurrences(long item,
int occurrences) |
org.eclipse.collections.api.LazyLongIterable |
asLazy() |
org.eclipse.collections.api.bag.primitive.MutableLongBag |
asSynchronized() |
org.eclipse.collections.api.bag.primitive.MutableLongBag |
asUnmodifiable() |
<V> org.eclipse.collections.api.bag.MutableBag<V> |
collect(org.eclipse.collections.api.block.function.primitive.LongToObjectFunction<? extends V> function) |
boolean |
equals(Object otherBag) |
void |
forEachWithOccurrences(org.eclipse.collections.api.block.procedure.primitive.LongIntProcedure procedure) |
int |
hashCode() |
int |
occurrencesOf(long item) |
org.eclipse.collections.api.bag.primitive.MutableLongBag |
reject(org.eclipse.collections.api.block.predicate.primitive.LongPredicate predicate) |
boolean |
removeOccurrences(long item,
int occurrences) |
org.eclipse.collections.api.bag.primitive.MutableLongBag |
select(org.eclipse.collections.api.block.predicate.primitive.LongPredicate predicate) |
int |
sizeDistinct() |
org.eclipse.collections.api.bag.primitive.ImmutableLongBag |
toImmutable() |
SynchronizedLongBag |
with(long element) |
SynchronizedLongBag |
withAll(org.eclipse.collections.api.LongIterable elements) |
SynchronizedLongBag |
without(long element) |
SynchronizedLongBag |
withoutAll(org.eclipse.collections.api.LongIterable elements) |
add, addAll, addAll, allSatisfy, anySatisfy, appendString, appendString, appendString, average, clear, contains, containsAll, containsAll, count, detectIfNone, each, forEach, injectInto, isEmpty, longIterator, 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, longIterator, 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 SynchronizedLongBag with(long element)
with in interface org.eclipse.collections.api.bag.primitive.MutableLongBagwith in interface org.eclipse.collections.api.collection.primitive.MutableLongCollectionwith in class AbstractSynchronizedLongCollectionpublic SynchronizedLongBag without(long element)
without in interface org.eclipse.collections.api.bag.primitive.MutableLongBagwithout in interface org.eclipse.collections.api.collection.primitive.MutableLongCollectionwithout in class AbstractSynchronizedLongCollectionpublic SynchronizedLongBag withAll(org.eclipse.collections.api.LongIterable elements)
withAll in interface org.eclipse.collections.api.bag.primitive.MutableLongBagwithAll in interface org.eclipse.collections.api.collection.primitive.MutableLongCollectionwithAll in class AbstractSynchronizedLongCollectionpublic SynchronizedLongBag withoutAll(org.eclipse.collections.api.LongIterable elements)
withoutAll in interface org.eclipse.collections.api.bag.primitive.MutableLongBagwithoutAll in interface org.eclipse.collections.api.collection.primitive.MutableLongCollectionwithoutAll in class AbstractSynchronizedLongCollectionpublic void addOccurrences(long item,
int occurrences)
addOccurrences in interface org.eclipse.collections.api.bag.primitive.MutableLongBagpublic boolean removeOccurrences(long item,
int occurrences)
removeOccurrences in interface org.eclipse.collections.api.bag.primitive.MutableLongBagpublic int sizeDistinct()
sizeDistinct in interface org.eclipse.collections.api.bag.primitive.LongBagpublic int occurrencesOf(long item)
occurrencesOf in interface org.eclipse.collections.api.bag.primitive.LongBagpublic void forEachWithOccurrences(org.eclipse.collections.api.block.procedure.primitive.LongIntProcedure procedure)
forEachWithOccurrences in interface org.eclipse.collections.api.bag.primitive.LongBagpublic org.eclipse.collections.api.bag.primitive.MutableLongBag select(org.eclipse.collections.api.block.predicate.primitive.LongPredicate predicate)
select in interface org.eclipse.collections.api.bag.primitive.LongBagselect in interface org.eclipse.collections.api.bag.primitive.MutableLongBagselect in interface org.eclipse.collections.api.collection.primitive.MutableLongCollectionselect in interface org.eclipse.collections.api.LongIterableselect in class AbstractSynchronizedLongCollectionpublic org.eclipse.collections.api.bag.primitive.MutableLongBag reject(org.eclipse.collections.api.block.predicate.primitive.LongPredicate predicate)
reject in interface org.eclipse.collections.api.bag.primitive.LongBagreject in interface org.eclipse.collections.api.bag.primitive.MutableLongBagreject in interface org.eclipse.collections.api.collection.primitive.MutableLongCollectionreject in interface org.eclipse.collections.api.LongIterablereject in class AbstractSynchronizedLongCollectionpublic <V> org.eclipse.collections.api.bag.MutableBag<V> collect(org.eclipse.collections.api.block.function.primitive.LongToObjectFunction<? extends V> function)
collect in interface org.eclipse.collections.api.bag.primitive.LongBagcollect in interface org.eclipse.collections.api.bag.primitive.MutableLongBagcollect in interface org.eclipse.collections.api.collection.primitive.MutableLongCollectioncollect in interface org.eclipse.collections.api.LongIterablecollect in class AbstractSynchronizedLongCollectionpublic boolean equals(Object otherBag)
public int hashCode()
public org.eclipse.collections.api.LazyLongIterable asLazy()
asLazy in interface org.eclipse.collections.api.LongIterableasLazy in class AbstractSynchronizedLongCollectionpublic org.eclipse.collections.api.bag.primitive.MutableLongBag asUnmodifiable()
asUnmodifiable in interface org.eclipse.collections.api.bag.primitive.MutableLongBagasUnmodifiable in interface org.eclipse.collections.api.collection.primitive.MutableLongCollectionasUnmodifiable in class AbstractSynchronizedLongCollectionpublic org.eclipse.collections.api.bag.primitive.MutableLongBag asSynchronized()
asSynchronized in interface org.eclipse.collections.api.bag.primitive.MutableLongBagasSynchronized in interface org.eclipse.collections.api.collection.primitive.MutableLongCollectionasSynchronized in class AbstractSynchronizedLongCollectionpublic org.eclipse.collections.api.bag.primitive.ImmutableLongBag toImmutable()
toImmutable in interface org.eclipse.collections.api.bag.primitive.LongBagtoImmutable in interface org.eclipse.collections.api.bag.primitive.MutableLongBagtoImmutable in interface org.eclipse.collections.api.collection.primitive.MutableLongCollectiontoImmutable in class AbstractSynchronizedLongCollectionCopyright © 2004–2017. All rights reserved.