public interface ImmutableDoubleBag extends ImmutableDoubleCollection, DoubleBag
| Modifier and Type | Method and Description |
|---|---|
ImmutableList<DoubleIntPair> |
bottomOccurrences(int count)
Returns the
count least frequently occurring items. |
<V> ImmutableBag<V> |
collect(DoubleToObjectFunction<? extends V> function) |
ImmutableDoubleBag |
newWith(double element) |
ImmutableDoubleBag |
newWithAll(DoubleIterable elements) |
ImmutableDoubleBag |
newWithout(double element) |
ImmutableDoubleBag |
newWithoutAll(DoubleIterable elements) |
ImmutableDoubleBag |
reject(DoublePredicate predicate) |
ImmutableDoubleBag |
select(DoublePredicate predicate) |
ImmutableDoubleBag |
selectByOccurrences(IntPredicate predicate)
Returns all elements of the bag that have a number of occurrences that satisfy the predicate.
|
ImmutableList<DoubleIntPair> |
topOccurrences(int count)
Returns the
count most frequently occurring items. |
equals, forEachWithOccurrences, hashCode, occurrencesOf, sizeDistinct, toImmutableallSatisfy, anySatisfy, asLazy, average, contains, containsAll, containsAll, count, detectIfNone, doubleIterator, each, forEach, injectInto, max, maxIfEmpty, median, min, minIfEmpty, noneSatisfy, sum, summaryStatistics, toArray, toBag, toList, toSet, toSortedArray, toSortedListappendString, appendString, appendString, isEmpty, makeString, makeString, makeString, notEmpty, size, toStringImmutableDoubleBag select(DoublePredicate predicate)
select in interface DoubleBagselect in interface DoubleIterableselect in interface ImmutableDoubleCollectionImmutableDoubleBag reject(DoublePredicate predicate)
reject in interface DoubleBagreject in interface DoubleIterablereject in interface ImmutableDoubleCollectionImmutableDoubleBag selectByOccurrences(IntPredicate predicate)
selectByOccurrences in interface DoubleBagImmutableList<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 DoubleBagImmutableList<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 DoubleBag<V> ImmutableBag<V> collect(DoubleToObjectFunction<? extends V> function)
collect in interface DoubleBagcollect in interface DoubleIterablecollect in interface ImmutableDoubleCollectionImmutableDoubleBag newWith(double element)
newWith in interface ImmutableDoubleCollectionImmutableDoubleBag newWithout(double element)
newWithout in interface ImmutableDoubleCollectionImmutableDoubleBag newWithAll(DoubleIterable elements)
newWithAll in interface ImmutableDoubleCollectionImmutableDoubleBag newWithoutAll(DoubleIterable elements)
newWithoutAll in interface ImmutableDoubleCollectionCopyright © 2004–2016. All rights reserved.