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, toImmutable
allSatisfy, 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, toSortedList
appendString, appendString, appendString, isEmpty, makeString, makeString, makeString, notEmpty, size, toString
ImmutableDoubleBag select(DoublePredicate predicate)
select
in interface DoubleBag
select
in interface DoubleIterable
select
in interface ImmutableDoubleCollection
ImmutableDoubleBag reject(DoublePredicate predicate)
reject
in interface DoubleBag
reject
in interface DoubleIterable
reject
in interface ImmutableDoubleCollection
ImmutableDoubleBag selectByOccurrences(IntPredicate predicate)
selectByOccurrences
in interface DoubleBag
ImmutableList<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 DoubleBag
ImmutableList<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 DoubleBag
collect
in interface DoubleIterable
collect
in interface ImmutableDoubleCollection
ImmutableDoubleBag newWith(double element)
newWith
in interface ImmutableDoubleCollection
ImmutableDoubleBag newWithout(double element)
newWithout
in interface ImmutableDoubleCollection
ImmutableDoubleBag newWithAll(DoubleIterable elements)
newWithAll
in interface ImmutableDoubleCollection
ImmutableDoubleBag newWithoutAll(DoubleIterable elements)
newWithoutAll
in interface ImmutableDoubleCollection
Copyright © 2004–2016. All rights reserved.