public class SynchronizedLongBag extends AbstractSynchronizedLongCollection implements 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| Constructor and Description |
|---|
SynchronizedLongBag(MutableLongBag bag) |
SynchronizedLongBag(MutableLongBag 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, longIterator, makeString, makeString, makeString, max, maxIfEmpty, median, min, minIfEmpty, noneSatisfy, notEmpty, reduce, reduceIfEmpty, remove, removeAll, removeAll, removeIf, retainAll, retainAll, size, sum, toArray, toArray, toBag, toList, toSet, toSortedArray, toSortedList, toStringselectDuplicates, tapadd, addAll, addAll, clear, longIterator, remove, removeAll, removeAll, removeIf, retainAll, retainAlltoStringOfItemToCountallSatisfy, 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 SynchronizedLongBag(MutableLongBag bag)
public SynchronizedLongBag(MutableLongBag bag, Object newLock)
public SynchronizedLongBag with(long element)
with in interface MutableLongBagwith in interface MutableLongCollectionwith in class AbstractSynchronizedLongCollectionpublic SynchronizedLongBag without(long element)
without in interface MutableLongBagwithout in interface MutableLongCollectionwithout in class AbstractSynchronizedLongCollectionpublic SynchronizedLongBag withAll(LongIterable elements)
withAll in interface MutableLongBagwithAll in interface MutableLongCollectionwithAll in class AbstractSynchronizedLongCollectionpublic SynchronizedLongBag withoutAll(LongIterable elements)
withoutAll in interface MutableLongBagwithoutAll in interface MutableLongCollectionwithoutAll in class AbstractSynchronizedLongCollectionpublic void addOccurrences(long item,
int occurrences)
addOccurrences in interface MutableLongBagpublic boolean removeOccurrences(long item,
int occurrences)
removeOccurrences in interface MutableLongBagpublic int sizeDistinct()
sizeDistinct in interface LongBagpublic int occurrencesOf(long item)
occurrencesOf in interface LongBagpublic void forEachWithOccurrences(LongIntProcedure procedure)
forEachWithOccurrences in interface LongBagpublic MutableLongBag select(LongPredicate predicate)
select in interface LongBagselect in interface MutableLongBagselect in interface MutableLongCollectionselect in interface LongIterableselect in class AbstractSynchronizedLongCollectionpublic MutableLongBag selectByOccurrences(IntPredicate predicate)
selectByOccurrences in interface LongBagselectByOccurrences in interface MutableLongBagpublic MutableLongSet selectUnique()
selectUnique in interface LongBagselectUnique in interface MutableLongBagpublic MutableList<LongIntPair> topOccurrences(int count)
topOccurrences in interface LongBagtopOccurrences in interface MutableLongBagpublic MutableList<LongIntPair> bottomOccurrences(int count)
bottomOccurrences in interface LongBagbottomOccurrences in interface MutableLongBagpublic MutableLongBag reject(LongPredicate predicate)
reject in interface LongBagreject in interface MutableLongBagreject in interface MutableLongCollectionreject in interface LongIterablereject in class AbstractSynchronizedLongCollectionpublic <V> MutableBag<V> collect(LongToObjectFunction<? extends V> function)
collect in interface LongBagcollect in interface MutableLongBagcollect in interface MutableLongCollectioncollect in interface LongIterablecollect in class AbstractSynchronizedLongCollectionpublic boolean equals(Object otherBag)
public int hashCode()
public LazyLongIterable asLazy()
asLazy in interface LongIterableasLazy in class AbstractSynchronizedLongCollectionpublic MutableLongBag asUnmodifiable()
asUnmodifiable in interface MutableLongBagasUnmodifiable in interface MutableLongCollectionasUnmodifiable in class AbstractSynchronizedLongCollectionpublic MutableLongBag asSynchronized()
asSynchronized in interface MutableLongBagasSynchronized in interface MutableLongCollectionasSynchronized in class AbstractSynchronizedLongCollectionpublic ImmutableLongBag toImmutable()
toImmutable in interface LongBagtoImmutable in interface MutableLongBagtoImmutable in interface MutableLongCollectiontoImmutable in class AbstractSynchronizedLongCollectionpublic MutableLongBag newEmpty()
newEmpty in interface MutableLongBagnewEmpty in interface MutableLongCollectionCopyright © 2004–2022. All rights reserved.