public interface ImmutableFloatBag extends ImmutableFloatCollection, FloatBag
| Modifier and Type | Method and 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.
|
default ImmutableFloatBag |
tap(FloatProcedure procedure) |
ImmutableList<FloatIntPair> |
topOccurrences(int count)
Returns the
count most frequently occurring items. |
equals, forEachWithOccurrences, hashCode, occurrencesOf, sizeDistinct, toImmutableallSatisfy, anySatisfy, asLazy, average, averageIfEmpty, collect, collectBoolean, collectByte, collectChar, collectDouble, collectFloat, collectInt, collectLong, collectShort, contains, containsAll, containsAll, count, detectIfNone, each, flatCollect, floatIterator, forEach, injectInto, max, maxIfEmpty, median, medianIfEmpty, min, minIfEmpty, noneSatisfy, reject, select, sum, summaryStatistics, toArray, toBag, toList, toSet, toSortedArray, toSortedListappendString, appendString, appendString, isEmpty, makeString, makeString, makeString, notEmpty, size, toStringImmutableFloatBag select(FloatPredicate predicate)
FloatIterableselect in interface FloatBagselect in interface FloatIterableselect in interface ImmutableFloatCollectionImmutableFloatBag reject(FloatPredicate predicate)
FloatIterablereject in interface FloatBagreject in interface FloatIterablereject in interface ImmutableFloatCollectiondefault ImmutableFloatBag tap(FloatProcedure procedure)
tap in interface FloatBagtap in interface FloatIterabletap in interface ImmutableFloatCollectionImmutableFloatBag selectByOccurrences(IntPredicate predicate)
selectByOccurrences in interface FloatBagImmutableList<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 FloatBagImmutableList<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)
FloatIterablecollect in interface FloatBagcollect in interface FloatIterablecollect in interface ImmutableFloatCollectionImmutableFloatBag newWith(float element)
newWith in interface ImmutableFloatCollectionImmutableFloatBag newWithout(float element)
newWithout in interface ImmutableFloatCollectionImmutableFloatBag newWithAll(FloatIterable elements)
newWithAll in interface ImmutableFloatCollectionImmutableFloatBag newWithoutAll(FloatIterable elements)
newWithoutAll in interface ImmutableFloatCollectionCopyright © 2004–2017. All rights reserved.