@ThreadSafe public final class SynchronizedDoubleBag extends AbstractSynchronizedDoubleCollection implements org.eclipse.collections.api.bag.primitive.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| Modifier and Type | Method and Description |
|---|---|
void |
addOccurrences(double item,
int occurrences) |
org.eclipse.collections.api.LazyDoubleIterable |
asLazy() |
org.eclipse.collections.api.bag.primitive.MutableDoubleBag |
asSynchronized() |
org.eclipse.collections.api.bag.primitive.MutableDoubleBag |
asUnmodifiable() |
<V> org.eclipse.collections.api.bag.MutableBag<V> |
collect(org.eclipse.collections.api.block.function.primitive.DoubleToObjectFunction<? extends V> function) |
boolean |
equals(Object otherBag) |
void |
forEachWithOccurrences(org.eclipse.collections.api.block.procedure.primitive.DoubleIntProcedure procedure) |
int |
hashCode() |
int |
occurrencesOf(double item) |
org.eclipse.collections.api.bag.primitive.MutableDoubleBag |
reject(org.eclipse.collections.api.block.predicate.primitive.DoublePredicate predicate) |
boolean |
removeOccurrences(double item,
int occurrences) |
org.eclipse.collections.api.bag.primitive.MutableDoubleBag |
select(org.eclipse.collections.api.block.predicate.primitive.DoublePredicate predicate) |
int |
sizeDistinct() |
org.eclipse.collections.api.bag.primitive.ImmutableDoubleBag |
toImmutable() |
SynchronizedDoubleBag |
with(double element) |
SynchronizedDoubleBag |
withAll(org.eclipse.collections.api.DoubleIterable elements) |
SynchronizedDoubleBag |
without(double element) |
SynchronizedDoubleBag |
withoutAll(org.eclipse.collections.api.DoubleIterable elements) |
add, addAll, addAll, allSatisfy, anySatisfy, appendString, appendString, appendString, average, clear, contains, containsAll, containsAll, count, detectIfNone, doubleIterator, each, forEach, injectInto, 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, doubleIterator, 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 SynchronizedDoubleBag with(double element)
with in interface org.eclipse.collections.api.bag.primitive.MutableDoubleBagwith in interface org.eclipse.collections.api.collection.primitive.MutableDoubleCollectionwith in class AbstractSynchronizedDoubleCollectionpublic SynchronizedDoubleBag without(double element)
without in interface org.eclipse.collections.api.bag.primitive.MutableDoubleBagwithout in interface org.eclipse.collections.api.collection.primitive.MutableDoubleCollectionwithout in class AbstractSynchronizedDoubleCollectionpublic SynchronizedDoubleBag withAll(org.eclipse.collections.api.DoubleIterable elements)
withAll in interface org.eclipse.collections.api.bag.primitive.MutableDoubleBagwithAll in interface org.eclipse.collections.api.collection.primitive.MutableDoubleCollectionwithAll in class AbstractSynchronizedDoubleCollectionpublic SynchronizedDoubleBag withoutAll(org.eclipse.collections.api.DoubleIterable elements)
withoutAll in interface org.eclipse.collections.api.bag.primitive.MutableDoubleBagwithoutAll in interface org.eclipse.collections.api.collection.primitive.MutableDoubleCollectionwithoutAll in class AbstractSynchronizedDoubleCollectionpublic void addOccurrences(double item,
int occurrences)
addOccurrences in interface org.eclipse.collections.api.bag.primitive.MutableDoubleBagpublic boolean removeOccurrences(double item,
int occurrences)
removeOccurrences in interface org.eclipse.collections.api.bag.primitive.MutableDoubleBagpublic int sizeDistinct()
sizeDistinct in interface org.eclipse.collections.api.bag.primitive.DoubleBagpublic int occurrencesOf(double item)
occurrencesOf in interface org.eclipse.collections.api.bag.primitive.DoubleBagpublic void forEachWithOccurrences(org.eclipse.collections.api.block.procedure.primitive.DoubleIntProcedure procedure)
forEachWithOccurrences in interface org.eclipse.collections.api.bag.primitive.DoubleBagpublic org.eclipse.collections.api.bag.primitive.MutableDoubleBag select(org.eclipse.collections.api.block.predicate.primitive.DoublePredicate predicate)
select in interface org.eclipse.collections.api.bag.primitive.DoubleBagselect in interface org.eclipse.collections.api.bag.primitive.MutableDoubleBagselect in interface org.eclipse.collections.api.collection.primitive.MutableDoubleCollectionselect in interface org.eclipse.collections.api.DoubleIterableselect in class AbstractSynchronizedDoubleCollectionpublic org.eclipse.collections.api.bag.primitive.MutableDoubleBag reject(org.eclipse.collections.api.block.predicate.primitive.DoublePredicate predicate)
reject in interface org.eclipse.collections.api.bag.primitive.DoubleBagreject in interface org.eclipse.collections.api.bag.primitive.MutableDoubleBagreject in interface org.eclipse.collections.api.collection.primitive.MutableDoubleCollectionreject in interface org.eclipse.collections.api.DoubleIterablereject in class AbstractSynchronizedDoubleCollectionpublic <V> org.eclipse.collections.api.bag.MutableBag<V> collect(org.eclipse.collections.api.block.function.primitive.DoubleToObjectFunction<? extends V> function)
collect in interface org.eclipse.collections.api.bag.primitive.DoubleBagcollect in interface org.eclipse.collections.api.bag.primitive.MutableDoubleBagcollect in interface org.eclipse.collections.api.collection.primitive.MutableDoubleCollectioncollect in interface org.eclipse.collections.api.DoubleIterablecollect in class AbstractSynchronizedDoubleCollectionpublic boolean equals(Object otherBag)
public int hashCode()
public org.eclipse.collections.api.LazyDoubleIterable asLazy()
asLazy in interface org.eclipse.collections.api.DoubleIterableasLazy in class AbstractSynchronizedDoubleCollectionpublic org.eclipse.collections.api.bag.primitive.MutableDoubleBag asUnmodifiable()
asUnmodifiable in interface org.eclipse.collections.api.bag.primitive.MutableDoubleBagasUnmodifiable in interface org.eclipse.collections.api.collection.primitive.MutableDoubleCollectionasUnmodifiable in class AbstractSynchronizedDoubleCollectionpublic org.eclipse.collections.api.bag.primitive.MutableDoubleBag asSynchronized()
asSynchronized in interface org.eclipse.collections.api.bag.primitive.MutableDoubleBagasSynchronized in interface org.eclipse.collections.api.collection.primitive.MutableDoubleCollectionasSynchronized in class AbstractSynchronizedDoubleCollectionpublic org.eclipse.collections.api.bag.primitive.ImmutableDoubleBag toImmutable()
toImmutable in interface org.eclipse.collections.api.bag.primitive.DoubleBagtoImmutable in interface org.eclipse.collections.api.bag.primitive.MutableDoubleBagtoImmutable in interface org.eclipse.collections.api.collection.primitive.MutableDoubleCollectiontoImmutable in class AbstractSynchronizedDoubleCollectionCopyright © 2004–2017. All rights reserved.