FloatBag
, FloatIterable
, ImmutableFloatCollection
, PrimitiveIterable
public interface ImmutableFloatBag extends ImmutableFloatCollection, FloatBag
Modifier and Type | Method | Description |
---|---|---|
ImmutableList<FloatIntPair> |
bottomOccurrences(int count) |
Returns the
count least frequently occurring items. |
<V> ImmutableBag<V> |
collect(FloatToObjectFunction<? extends V> function) |
Returns a new collection with the results of applying the specified function on each element of the source
collection.
|
ImmutableFloatBag |
newWith(float element) |
|
ImmutableFloatBag |
newWithAll(FloatIterable elements) |
|
ImmutableFloatBag |
newWithout(float element) |
|
ImmutableFloatBag |
newWithoutAll(FloatIterable elements) |
|
ImmutableFloatBag |
reject(FloatPredicate predicate) |
Returns a new FloatIterable with all of the elements in the FloatIterable that
return false for the specified predicate.
|
ImmutableFloatBag |
select(FloatPredicate predicate) |
Returns a new FloatIterable with all of the elements in the FloatIterable that
return true for the specified predicate.
|
ImmutableFloatBag |
selectByOccurrences(IntPredicate predicate) |
Returns all elements of the bag that have a number of occurrences that satisfy the predicate.
|
ImmutableList<FloatIntPair> |
topOccurrences(int count) |
Returns the
count most frequently occurring items. |
equals, forEachWithOccurrences, hashCode, occurrencesOf, sizeDistinct, toImmutable
allSatisfy, anySatisfy, asLazy, average, collect, collectBoolean, collectByte, collectChar, collectDouble, collectFloat, collectInt, collectLong, collectShort, contains, containsAll, containsAll, count, detectIfNone, each, flatCollect, floatIterator, forEach, injectInto, max, maxIfEmpty, median, min, minIfEmpty, noneSatisfy, reject, select, sum, summaryStatistics, toArray, toBag, toList, toSet, toSortedArray, toSortedList
appendString, appendString, appendString, isEmpty, makeString, makeString, makeString, notEmpty, size, toString
ImmutableFloatBag select(FloatPredicate predicate)
FloatIterable
select
in interface FloatBag
select
in interface FloatIterable
select
in interface ImmutableFloatCollection
ImmutableFloatBag reject(FloatPredicate predicate)
FloatIterable
reject
in interface FloatBag
reject
in interface FloatIterable
reject
in interface ImmutableFloatCollection
ImmutableFloatBag selectByOccurrences(IntPredicate predicate)
selectByOccurrences
in interface FloatBag
ImmutableList<FloatIntPair> 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 FloatBag
ImmutableList<FloatIntPair> 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 FloatBag
<V> ImmutableBag<V> collect(FloatToObjectFunction<? extends V> function)
FloatIterable
collect
in interface FloatBag
collect
in interface FloatIterable
collect
in interface ImmutableFloatCollection
ImmutableFloatBag newWith(float element)
newWith
in interface ImmutableFloatCollection
ImmutableFloatBag newWithout(float element)
newWithout
in interface ImmutableFloatCollection
ImmutableFloatBag newWithAll(FloatIterable elements)
newWithAll
in interface ImmutableFloatCollection
ImmutableFloatBag newWithoutAll(FloatIterable elements)
newWithoutAll
in interface ImmutableFloatCollection
Copyright © 2004–2017. All rights reserved.