DoubleBag
, DoubleIterable
, ImmutableDoubleCollection
, PrimitiveIterable
public interface ImmutableDoubleBag extends ImmutableDoubleCollection, DoubleBag
Modifier and Type | Method | Description |
---|---|---|
ImmutableList<DoubleIntPair> |
bottomOccurrences(int count) |
Returns the
count least frequently occurring items. |
<V> ImmutableBag<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.
|
ImmutableDoubleBag |
newWith(double element) |
|
ImmutableDoubleBag |
newWithAll(DoubleIterable elements) |
|
ImmutableDoubleBag |
newWithout(double element) |
|
ImmutableDoubleBag |
newWithoutAll(DoubleIterable elements) |
|
ImmutableDoubleBag |
reject(DoublePredicate predicate) |
Returns a new DoubleIterable with all of the elements in the DoubleIterable that
return false for the specified predicate.
|
ImmutableDoubleBag |
select(DoublePredicate predicate) |
Returns a new DoubleIterable with all of the elements in the DoubleIterable that
return true for the specified predicate.
|
ImmutableDoubleBag |
selectByOccurrences(IntPredicate predicate) |
Returns all elements of the bag that have a number of occurrences that satisfy the predicate.
|
default ImmutableDoubleBag |
selectDuplicates() |
Returns all elements of the bag that have more than one occurrence.
|
default ImmutableDoubleSet |
selectUnique() |
Returns all elements of the bag that have exactly one occurrence.
|
default ImmutableDoubleBag |
tap(DoubleProcedure procedure) |
|
ImmutableList<DoubleIntPair> |
topOccurrences(int count) |
Returns the
count most frequently occurring items. |
equals, forEachWithOccurrences, hashCode, occurrencesOf, sizeDistinct, toImmutable, toStringOfItemToCount
allSatisfy, anySatisfy, asLazy, average, averageIfEmpty, chunk, collect, collectBoolean, collectByte, collectChar, collectDouble, collectFloat, collectInt, collectLong, collectShort, contains, containsAll, containsAll, count, detectIfNone, doubleIterator, each, flatCollect, forEach, injectInto, max, maxIfEmpty, median, medianIfEmpty, min, minIfEmpty, noneSatisfy, reject, select, sum, summaryStatistics, toArray, toBag, toList, toSet, toSortedArray, toSortedList
appendString, appendString, appendString, isEmpty, makeString, makeString, makeString, notEmpty, size, toString
ImmutableDoubleBag select(DoublePredicate predicate)
DoubleIterable
select
in interface DoubleBag
select
in interface DoubleIterable
select
in interface ImmutableDoubleCollection
ImmutableDoubleBag reject(DoublePredicate predicate)
DoubleIterable
reject
in interface DoubleBag
reject
in interface DoubleIterable
reject
in interface ImmutableDoubleCollection
default ImmutableDoubleBag tap(DoubleProcedure procedure)
tap
in interface DoubleBag
tap
in interface DoubleIterable
tap
in interface ImmutableDoubleCollection
ImmutableDoubleBag selectByOccurrences(IntPredicate predicate)
selectByOccurrences
in interface DoubleBag
default ImmutableDoubleBag selectDuplicates()
selectDuplicates
in interface DoubleBag
default ImmutableDoubleSet selectUnique()
selectUnique
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)
DoubleIterable
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–2018. All rights reserved.