FloatIterable
, PrimitiveIterable
ImmutableFloatBag
, MutableFloatBag
FloatHashBag
, SynchronizedFloatBag
, UnmodifiableFloatBag
public interface FloatBag extends FloatIterable
Modifier and Type | Method | Description |
---|---|---|
ListIterable<FloatIntPair> |
bottomOccurrences(int count) |
Returns the
count least frequently occurring items. |
<V> Bag<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.
|
boolean |
equals(java.lang.Object o) |
Follows the same general contract as
Bag.equals(Object) . |
void |
forEachWithOccurrences(FloatIntProcedure procedure) |
For each distinct item, with the number of occurrences, execute the specified procedure.
|
int |
hashCode() |
Follows the same general contract as
Bag.hashCode() . |
int |
occurrencesOf(float item) |
The occurrences of a distinct item in the bag.
|
FloatBag |
reject(FloatPredicate predicate) |
Returns a new FloatIterable with all of the elements in the FloatIterable that
return false for the specified predicate.
|
FloatBag |
select(FloatPredicate predicate) |
Returns a new FloatIterable with all of the elements in the FloatIterable that
return true for the specified predicate.
|
FloatBag |
selectByOccurrences(IntPredicate predicate) |
Returns all elements of the bag that have a number of occurrences that satisfy the predicate.
|
default FloatBag |
selectDuplicates() |
Returns all elements of the bag that have more than one occurrence.
|
FloatSet |
selectUnique() |
Returns all elements of the bag that have exactly one occurrence.
|
int |
sizeDistinct() |
The size of the Bag when counting only distinct elements.
|
default FloatBag |
tap(FloatProcedure procedure) |
|
ImmutableFloatBag |
toImmutable() |
Returns an immutable copy of this bag.
|
ListIterable<FloatIntPair> |
topOccurrences(int count) |
Returns the
count most frequently occurring items. |
default java.lang.String |
toStringOfItemToCount() |
allSatisfy, anySatisfy, asLazy, average, averageIfEmpty, chunk, 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, reduce, reduceIfEmpty, reject, select, sum, summaryStatistics, toArray, toBag, toList, toSet, toSortedArray, toSortedList
appendString, appendString, appendString, isEmpty, makeString, makeString, makeString, notEmpty, size, toString
int sizeDistinct()
default FloatBag tap(FloatProcedure procedure)
tap
in interface FloatIterable
FloatBag selectByOccurrences(IntPredicate predicate)
default FloatBag selectDuplicates()
FloatSet selectUnique()
ListIterable<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.ListIterable<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.int occurrencesOf(float item)
void forEachWithOccurrences(FloatIntProcedure procedure)
FloatBag select(FloatPredicate predicate)
FloatIterable
select
in interface FloatIterable
FloatBag reject(FloatPredicate predicate)
FloatIterable
reject
in interface FloatIterable
<V> Bag<V> collect(FloatToObjectFunction<? extends V> function)
FloatIterable
collect
in interface FloatIterable
boolean equals(java.lang.Object o)
Bag.equals(Object)
.equals
in class java.lang.Object
int hashCode()
Bag.hashCode()
.hashCode
in class java.lang.Object
ImmutableFloatBag toImmutable()
default java.lang.String toStringOfItemToCount()
Copyright © 2004–2020. All rights reserved.