@NotThreadSafe public final class UnmodifiableDoubleBag extends AbstractUnmodifiableDoubleCollection implements com.gs.collections.api.bag.primitive.MutableDoubleBag
| Modifier and Type | Method and Description |
|---|---|
void |
addOccurrences(double item,
int occurrences) |
com.gs.collections.api.LazyDoubleIterable |
asLazy() |
com.gs.collections.api.bag.primitive.MutableDoubleBag |
asSynchronized() |
com.gs.collections.api.bag.primitive.MutableDoubleBag |
asUnmodifiable() |
<V> com.gs.collections.api.bag.MutableBag<V> |
collect(com.gs.collections.api.block.function.primitive.DoubleToObjectFunction<? extends V> function) |
boolean |
equals(java.lang.Object otherBag)
Follows the same general contract as
Bag.equals(Object). |
void |
forEachWithOccurrences(com.gs.collections.api.block.procedure.primitive.DoubleIntProcedure procedure)
For each distinct item, with the number of occurrences, execute the specified procedure.
|
int |
hashCode()
Follows the same general contract as
Bag.hashCode(). |
int |
occurrencesOf(double item)
The occurrences of a distinct item in the bag.
|
com.gs.collections.api.bag.primitive.MutableDoubleBag |
reject(com.gs.collections.api.block.predicate.primitive.DoublePredicate predicate) |
boolean |
removeOccurrences(double item,
int occurrences) |
com.gs.collections.api.bag.primitive.MutableDoubleBag |
select(com.gs.collections.api.block.predicate.primitive.DoublePredicate predicate) |
int |
sizeDistinct()
The size of the Bag when counting only distinct elements.
|
com.gs.collections.api.bag.primitive.ImmutableDoubleBag |
toImmutable()
Returns an immutable copy of this bag.
|
UnmodifiableDoubleBag |
with(double element) |
UnmodifiableDoubleBag |
withAll(com.gs.collections.api.DoubleIterable elements) |
UnmodifiableDoubleBag |
without(double element) |
UnmodifiableDoubleBag |
withoutAll(com.gs.collections.api.DoubleIterable elements) |
add, addAll, addAll, allSatisfy, anySatisfy, appendString, appendString, appendString, average, clear, contains, containsAll, containsAll, count, detectIfNone, doubleIterator, forEach, getDoubleCollection, isEmpty, makeString, makeString, makeString, max, maxIfEmpty, median, min, minIfEmpty, noneSatisfy, notEmpty, remove, removeAll, removeAll, size, sum, toArray, toBag, toList, toSet, toSortedArray, toSortedList, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitadd, addAll, addAll, clear, remove, removeAll, removeAllallSatisfy, anySatisfy, average, contains, containsAll, containsAll, count, detectIfNone, doubleIterator, forEach, max, maxIfEmpty, median, min, minIfEmpty, noneSatisfy, sum, toArray, toBag, toList, toSet, toSortedArray, toSortedListpublic UnmodifiableDoubleBag with(double element)
with in interface com.gs.collections.api.bag.primitive.MutableDoubleBagwith in interface com.gs.collections.api.collection.primitive.MutableDoubleCollectionwith in class AbstractUnmodifiableDoubleCollectionpublic UnmodifiableDoubleBag without(double element)
without in interface com.gs.collections.api.bag.primitive.MutableDoubleBagwithout in interface com.gs.collections.api.collection.primitive.MutableDoubleCollectionwithout in class AbstractUnmodifiableDoubleCollectionpublic UnmodifiableDoubleBag withAll(com.gs.collections.api.DoubleIterable elements)
withAll in interface com.gs.collections.api.bag.primitive.MutableDoubleBagwithAll in interface com.gs.collections.api.collection.primitive.MutableDoubleCollectionwithAll in class AbstractUnmodifiableDoubleCollectionpublic UnmodifiableDoubleBag withoutAll(com.gs.collections.api.DoubleIterable elements)
withoutAll in interface com.gs.collections.api.bag.primitive.MutableDoubleBagwithoutAll in interface com.gs.collections.api.collection.primitive.MutableDoubleCollectionwithoutAll in class AbstractUnmodifiableDoubleCollectionpublic void addOccurrences(double item,
int occurrences)
addOccurrences in interface com.gs.collections.api.bag.primitive.MutableDoubleBagpublic boolean removeOccurrences(double item,
int occurrences)
removeOccurrences in interface com.gs.collections.api.bag.primitive.MutableDoubleBagpublic int sizeDistinct()
com.gs.collections.api.bag.primitive.DoubleBagsizeDistinct in interface com.gs.collections.api.bag.primitive.DoubleBagpublic int occurrencesOf(double item)
com.gs.collections.api.bag.primitive.DoubleBagoccurrencesOf in interface com.gs.collections.api.bag.primitive.DoubleBagpublic void forEachWithOccurrences(com.gs.collections.api.block.procedure.primitive.DoubleIntProcedure procedure)
com.gs.collections.api.bag.primitive.DoubleBagforEachWithOccurrences in interface com.gs.collections.api.bag.primitive.DoubleBagpublic com.gs.collections.api.bag.primitive.MutableDoubleBag select(com.gs.collections.api.block.predicate.primitive.DoublePredicate predicate)
select in interface com.gs.collections.api.bag.primitive.DoubleBagselect in interface com.gs.collections.api.bag.primitive.MutableDoubleBagselect in interface com.gs.collections.api.collection.primitive.MutableDoubleCollectionselect in interface com.gs.collections.api.DoubleIterableselect in class AbstractUnmodifiableDoubleCollectionpublic com.gs.collections.api.bag.primitive.MutableDoubleBag reject(com.gs.collections.api.block.predicate.primitive.DoublePredicate predicate)
reject in interface com.gs.collections.api.bag.primitive.DoubleBagreject in interface com.gs.collections.api.bag.primitive.MutableDoubleBagreject in interface com.gs.collections.api.collection.primitive.MutableDoubleCollectionreject in interface com.gs.collections.api.DoubleIterablereject in class AbstractUnmodifiableDoubleCollectionpublic <V> com.gs.collections.api.bag.MutableBag<V> collect(com.gs.collections.api.block.function.primitive.DoubleToObjectFunction<? extends V> function)
collect in interface com.gs.collections.api.bag.primitive.DoubleBagcollect in interface com.gs.collections.api.bag.primitive.MutableDoubleBagcollect in interface com.gs.collections.api.collection.primitive.MutableDoubleCollectioncollect in interface com.gs.collections.api.DoubleIterablecollect in class AbstractUnmodifiableDoubleCollectionpublic boolean equals(java.lang.Object otherBag)
com.gs.collections.api.bag.primitive.DoubleBagBag.equals(Object).equals in interface com.gs.collections.api.bag.primitive.DoubleBagequals in class java.lang.Objectpublic int hashCode()
com.gs.collections.api.bag.primitive.DoubleBagBag.hashCode().hashCode in interface com.gs.collections.api.bag.primitive.DoubleBaghashCode in class java.lang.Objectpublic com.gs.collections.api.LazyDoubleIterable asLazy()
asLazy in interface com.gs.collections.api.DoubleIterableasLazy in class AbstractUnmodifiableDoubleCollectionpublic com.gs.collections.api.bag.primitive.MutableDoubleBag asUnmodifiable()
asUnmodifiable in interface com.gs.collections.api.bag.primitive.MutableDoubleBagasUnmodifiable in interface com.gs.collections.api.collection.primitive.MutableDoubleCollectionasUnmodifiable in class AbstractUnmodifiableDoubleCollectionpublic com.gs.collections.api.bag.primitive.MutableDoubleBag asSynchronized()
asSynchronized in interface com.gs.collections.api.bag.primitive.MutableDoubleBagasSynchronized in interface com.gs.collections.api.collection.primitive.MutableDoubleCollectionasSynchronized in class AbstractUnmodifiableDoubleCollectionpublic com.gs.collections.api.bag.primitive.ImmutableDoubleBag toImmutable()
com.gs.collections.api.bag.primitive.MutableDoubleBagtoImmutable in interface com.gs.collections.api.bag.primitive.DoubleBagtoImmutable in interface com.gs.collections.api.bag.primitive.MutableDoubleBagtoImmutable in interface com.gs.collections.api.collection.primitive.MutableDoubleCollectiontoImmutable in class AbstractUnmodifiableDoubleCollection