DoubleBag, DoubleIterable, MutableDoubleCollection, PrimitiveIterableDoubleHashBag, SynchronizedDoubleBag, UnmodifiableDoubleBagpublic interface MutableDoubleBag extends MutableDoubleCollection, DoubleBag
| Modifier and Type | Method | Description |
|---|---|---|
void |
addOccurrences(double item,
int occurrences) |
|
MutableDoubleBag |
asSynchronized() |
|
MutableDoubleBag |
asUnmodifiable() |
|
MutableList<DoubleIntPair> |
bottomOccurrences(int count) |
Returns the
count least frequently occurring items. |
<V> MutableBag<V> |
collect(DoubleToObjectFunction<? extends V> function) |
Returns a new collection with the results of applying the specified function on each element of the source
collection.
|
default MutableDoubleBag |
newEmpty() |
Creates a new empty mutable version of the same Bag type.
|
MutableDoubleBag |
reject(DoublePredicate predicate) |
Returns a new DoubleIterable with all of the elements in the DoubleIterable that
return false for the specified predicate.
|
boolean |
removeOccurrences(double item,
int occurrences) |
|
MutableDoubleBag |
select(DoublePredicate predicate) |
Returns a new DoubleIterable with all of the elements in the DoubleIterable that
return true for the specified predicate.
|
MutableDoubleBag |
selectByOccurrences(IntPredicate predicate) |
Returns all elements of the bag that have a number of occurrences that satisfy the predicate.
|
default MutableDoubleBag |
selectDuplicates() |
Returns all elements of the bag that have more than one occurrence.
|
MutableDoubleSet |
selectUnique() |
Returns all elements of the bag that have exactly one occurrence.
|
default MutableDoubleBag |
tap(DoubleProcedure procedure) |
|
ImmutableDoubleBag |
toImmutable() |
Returns an immutable copy of this bag.
|
MutableList<DoubleIntPair> |
topOccurrences(int count) |
Returns the
count most frequently occurring items. |
MutableDoubleBag |
with(double element) |
|
MutableDoubleBag |
withAll(DoubleIterable elements) |
|
MutableDoubleBag |
without(double element) |
|
MutableDoubleBag |
withoutAll(DoubleIterable elements) |
equals, forEachWithOccurrences, hashCode, occurrencesOf, sizeDistinct, toStringOfItemToCountallSatisfy, anySatisfy, asLazy, average, averageIfEmpty, chunk, collect, collectBoolean, collectByte, collectChar, collectDouble, collectFloat, collectInt, collectLong, collectShort, contains, containsAll, containsAll, count, detectIfNone, each, flatCollect, forEach, injectInto, max, maxIfEmpty, median, medianIfEmpty, min, minIfEmpty, noneSatisfy, reduce, reduceIfEmpty, reject, select, sum, summaryStatistics, toArray, toBag, toList, toSet, toSortedArray, toSortedListadd, addAll, addAll, clear, doubleIterator, remove, removeAll, removeAll, removeIf, retainAll, retainAllappendString, appendString, appendString, isEmpty, makeString, makeString, makeString, notEmpty, size, toStringvoid addOccurrences(double item,
int occurrences)
boolean removeOccurrences(double item,
int occurrences)
default MutableDoubleBag tap(DoubleProcedure procedure)
tap in interface DoubleBagtap in interface DoubleIterabletap in interface MutableDoubleCollectionMutableDoubleBag selectByOccurrences(IntPredicate predicate)
selectByOccurrences in interface DoubleBagdefault MutableDoubleBag selectDuplicates()
selectDuplicates in interface DoubleBagMutableDoubleSet selectUnique()
selectUnique in interface DoubleBagMutableList<DoubleIntPair> topOccurrences(int count)
count most frequently occurring items.
In the event of a tie, all of the items with the number of occurrences that match the occurrences of the last
item will be returned.topOccurrences in interface DoubleBagMutableList<DoubleIntPair> bottomOccurrences(int count)
count least frequently occurring items.
In the event of a tie, all of the items with the number of occurrences that match the occurrences of the last
item will be returned.bottomOccurrences in interface DoubleBagMutableDoubleBag select(DoublePredicate predicate)
DoubleIterableselect in interface DoubleBagselect in interface DoubleIterableselect in interface MutableDoubleCollectionMutableDoubleBag reject(DoublePredicate predicate)
DoubleIterablereject in interface DoubleBagreject in interface DoubleIterablereject in interface MutableDoubleCollection<V> MutableBag<V> collect(DoubleToObjectFunction<? extends V> function)
DoubleIterablecollect in interface DoubleBagcollect in interface DoubleIterablecollect in interface MutableDoubleCollectionMutableDoubleBag with(double element)
with in interface MutableDoubleCollectionMutableDoubleBag without(double element)
without in interface MutableDoubleCollectionMutableDoubleBag withAll(DoubleIterable elements)
withAll in interface MutableDoubleCollectionMutableDoubleBag withoutAll(DoubleIterable elements)
withoutAll in interface MutableDoubleCollectionMutableDoubleBag asUnmodifiable()
asUnmodifiable in interface MutableDoubleCollectionMutableDoubleBag asSynchronized()
asSynchronized in interface MutableDoubleCollectionImmutableDoubleBag toImmutable()
toImmutable in interface DoubleBagtoImmutable in interface MutableDoubleCollectiondefault MutableDoubleBag newEmpty()
newEmpty in interface MutableDoubleCollectionCopyright © 2004–2020. All rights reserved.