@NotThreadSafe public final class UnmodifiableDoubleBag extends AbstractUnmodifiableDoubleCollection implements MutableDoubleBag
| Modifier and Type | Method and Description |
|---|---|
void |
addOccurrences(double item,
int occurrences) |
LazyDoubleIterable |
asLazy() |
MutableDoubleBag |
asSynchronized() |
MutableDoubleBag |
asUnmodifiable() |
<V> MutableBag<V> |
collect(DoubleToObjectFunction<? extends V> function) |
boolean |
equals(Object otherBag)
Follows the same general contract as
Bag.equals(Object). |
void |
forEachWithOccurrences(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(). |
<T> T |
injectInto(T injectedValue,
ObjectDoubleToObjectFunction<? super T,? extends T> function) |
int |
occurrencesOf(double item)
The occurrences of a distinct item in the bag.
|
MutableDoubleBag |
reject(DoublePredicate predicate) |
boolean |
removeOccurrences(double item,
int occurrences) |
MutableDoubleBag |
select(DoublePredicate predicate) |
int |
sizeDistinct()
The size of the Bag when counting only distinct elements.
|
ImmutableDoubleBag |
toImmutable()
Returns an immutable copy of this bag.
|
UnmodifiableDoubleBag |
with(double element) |
UnmodifiableDoubleBag |
withAll(DoubleIterable elements) |
UnmodifiableDoubleBag |
without(double element) |
UnmodifiableDoubleBag |
withoutAll(DoubleIterable elements) |
add, addAll, addAll, allSatisfy, anySatisfy, appendString, appendString, appendString, average, clear, contains, containsAll, containsAll, count, detectIfNone, doubleIterator, forEach, 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, remove, removeAll, removeAll, retainAll, retainAllallSatisfy, anySatisfy, average, contains, containsAll, containsAll, count, detectIfNone, doubleIterator, forEach, max, maxIfEmpty, median, min, minIfEmpty, noneSatisfy, sum, toArray, toBag, toList, toSet, toSortedArray, toSortedListappendString, appendString, appendString, isEmpty, makeString, makeString, makeString, notEmpty, size, toStringpublic UnmodifiableDoubleBag with(double element)
with in interface MutableDoubleBagwith in interface MutableDoubleCollectionwith in class AbstractUnmodifiableDoubleCollectionpublic UnmodifiableDoubleBag without(double element)
without in interface MutableDoubleBagwithout in interface MutableDoubleCollectionwithout in class AbstractUnmodifiableDoubleCollectionpublic UnmodifiableDoubleBag withAll(DoubleIterable elements)
withAll in interface MutableDoubleBagwithAll in interface MutableDoubleCollectionwithAll in class AbstractUnmodifiableDoubleCollectionpublic UnmodifiableDoubleBag withoutAll(DoubleIterable elements)
withoutAll in interface MutableDoubleBagwithoutAll in interface MutableDoubleCollectionwithoutAll in class AbstractUnmodifiableDoubleCollectionpublic void addOccurrences(double item,
int occurrences)
addOccurrences in interface MutableDoubleBagpublic boolean removeOccurrences(double item,
int occurrences)
removeOccurrences in interface MutableDoubleBagpublic int sizeDistinct()
DoubleBagsizeDistinct in interface DoubleBagpublic int occurrencesOf(double item)
DoubleBagoccurrencesOf in interface DoubleBagpublic void forEachWithOccurrences(DoubleIntProcedure procedure)
DoubleBagforEachWithOccurrences in interface DoubleBagpublic MutableDoubleBag select(DoublePredicate predicate)
select in interface DoubleBagselect in interface MutableDoubleBagselect in interface MutableDoubleCollectionselect in interface DoubleIterableselect in class AbstractUnmodifiableDoubleCollectionpublic MutableDoubleBag reject(DoublePredicate predicate)
reject in interface DoubleBagreject in interface MutableDoubleBagreject in interface MutableDoubleCollectionreject in interface DoubleIterablereject in class AbstractUnmodifiableDoubleCollectionpublic <V> MutableBag<V> collect(DoubleToObjectFunction<? extends V> function)
collect in interface DoubleBagcollect in interface MutableDoubleBagcollect in interface MutableDoubleCollectioncollect in interface DoubleIterablecollect in class AbstractUnmodifiableDoubleCollectionpublic boolean equals(Object otherBag)
DoubleBagBag.equals(Object).public int hashCode()
DoubleBagBag.hashCode().public LazyDoubleIterable asLazy()
asLazy in interface DoubleIterableasLazy in class AbstractUnmodifiableDoubleCollectionpublic MutableDoubleBag asUnmodifiable()
asUnmodifiable in interface MutableDoubleBagasUnmodifiable in interface MutableDoubleCollectionasUnmodifiable in class AbstractUnmodifiableDoubleCollectionpublic MutableDoubleBag asSynchronized()
asSynchronized in interface MutableDoubleBagasSynchronized in interface MutableDoubleCollectionasSynchronized in class AbstractUnmodifiableDoubleCollectionpublic ImmutableDoubleBag toImmutable()
MutableDoubleBagtoImmutable in interface DoubleBagtoImmutable in interface MutableDoubleBagtoImmutable in interface MutableDoubleCollectiontoImmutable in class AbstractUnmodifiableDoubleCollectionpublic <T> T injectInto(T injectedValue,
ObjectDoubleToObjectFunction<? super T,? extends T> function)
injectInto in interface DoubleIterableinjectInto in class AbstractUnmodifiableDoubleCollectionCopyright © 2004–2017. All rights reserved.