public class SynchronizedDoubleBag extends AbstractSynchronizedDoubleCollection implements MutableDoubleBag
MutableDoubleBag. It is imperative that the user manually synchronize on the collection when iterating over it using the
DoubleIterator, as per Collections.synchronizedCollection(Collection).
This file was automatically generated from template file synchronizedPrimitiveBag.stg.
MutableDoubleBag.asSynchronized(),
MutableBag.asSynchronized(),
Serialized Form| Constructor and Description |
|---|
SynchronizedDoubleBag(MutableDoubleBag bag) |
SynchronizedDoubleBag(MutableDoubleBag bag,
Object newLock) |
add, addAll, addAll, allSatisfy, anySatisfy, appendString, appendString, appendString, average, chunk, clear, contains, containsAll, containsAll, containsAny, containsAny, containsNone, containsNone, count, detectIfNone, doubleIterator, each, injectInto, isEmpty, 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, doubleIterator, 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 SynchronizedDoubleBag(MutableDoubleBag bag)
public SynchronizedDoubleBag(MutableDoubleBag bag, Object newLock)
public SynchronizedDoubleBag with(double element)
with in interface MutableDoubleBagwith in interface MutableDoubleCollectionwith in class AbstractSynchronizedDoubleCollectionpublic SynchronizedDoubleBag without(double element)
without in interface MutableDoubleBagwithout in interface MutableDoubleCollectionwithout in class AbstractSynchronizedDoubleCollectionpublic SynchronizedDoubleBag withAll(DoubleIterable elements)
withAll in interface MutableDoubleBagwithAll in interface MutableDoubleCollectionwithAll in class AbstractSynchronizedDoubleCollectionpublic SynchronizedDoubleBag withoutAll(DoubleIterable elements)
withoutAll in interface MutableDoubleBagwithoutAll in interface MutableDoubleCollectionwithoutAll in class AbstractSynchronizedDoubleCollectionpublic void addOccurrences(double item,
int occurrences)
addOccurrences in interface MutableDoubleBagpublic boolean removeOccurrences(double item,
int occurrences)
removeOccurrences in interface MutableDoubleBagpublic int sizeDistinct()
sizeDistinct in interface DoubleBagpublic int occurrencesOf(double item)
occurrencesOf in interface DoubleBagpublic void forEachWithOccurrences(DoubleIntProcedure procedure)
forEachWithOccurrences in interface DoubleBagpublic MutableDoubleBag select(DoublePredicate predicate)
select in interface DoubleBagselect in interface MutableDoubleBagselect in interface MutableDoubleCollectionselect in interface DoubleIterableselect in class AbstractSynchronizedDoubleCollectionpublic MutableDoubleBag selectByOccurrences(IntPredicate predicate)
selectByOccurrences in interface DoubleBagselectByOccurrences in interface MutableDoubleBagpublic MutableDoubleSet selectUnique()
selectUnique in interface DoubleBagselectUnique in interface MutableDoubleBagpublic MutableList<DoubleIntPair> topOccurrences(int count)
topOccurrences in interface DoubleBagtopOccurrences in interface MutableDoubleBagpublic MutableList<DoubleIntPair> bottomOccurrences(int count)
bottomOccurrences in interface DoubleBagbottomOccurrences in interface MutableDoubleBagpublic MutableDoubleBag reject(DoublePredicate predicate)
reject in interface DoubleBagreject in interface MutableDoubleBagreject in interface MutableDoubleCollectionreject in interface DoubleIterablereject in class AbstractSynchronizedDoubleCollectionpublic <V> MutableBag<V> collect(DoubleToObjectFunction<? extends V> function)
collect in interface DoubleBagcollect in interface MutableDoubleBagcollect in interface MutableDoubleCollectioncollect in interface DoubleIterablecollect in class AbstractSynchronizedDoubleCollectionpublic boolean equals(Object otherBag)
public int hashCode()
public LazyDoubleIterable asLazy()
asLazy in interface DoubleIterableasLazy in class AbstractSynchronizedDoubleCollectionpublic MutableDoubleBag asUnmodifiable()
asUnmodifiable in interface MutableDoubleBagasUnmodifiable in interface MutableDoubleCollectionasUnmodifiable in class AbstractSynchronizedDoubleCollectionpublic MutableDoubleBag asSynchronized()
asSynchronized in interface MutableDoubleBagasSynchronized in interface MutableDoubleCollectionasSynchronized in class AbstractSynchronizedDoubleCollectionpublic ImmutableDoubleBag toImmutable()
toImmutable in interface DoubleBagtoImmutable in interface MutableDoubleBagtoImmutable in interface MutableDoubleCollectiontoImmutable in class AbstractSynchronizedDoubleCollectionpublic MutableDoubleBag newEmpty()
newEmpty in interface MutableDoubleBagnewEmpty in interface MutableDoubleCollectionCopyright © 2004–2022. All rights reserved.