| Modifier and Type | Method and Description |
|---|---|
| public boolean | allSatisfy(FloatPredicate predicate)
Returns true if all of the elements in the FloatIterable return true for the specified predicate, otherwise returns false. |
| public boolean | anySatisfy(FloatPredicate predicate)
Returns true if any of the elements in the FloatIterable return true for the specified predicate, otherwise returns false. |
| public LazyFloatIterable | |
| public double | |
| public default double | |
| public default RichIterable | Returns: ARichIterable containing FloatIterables of size size, except the last will be
truncated if the elements don't divide evenly.the number of elements per chunk size)Partitions elements in fixed size chunks. |
| public <V> RichIterable | collect(FloatToObjectFunction<? extends V> function)
Returns a new collection with the results of applying the specified function on each element of the source collection. |
| public default <V, R extends Collection | collect(FloatToObjectFunction<? extends V> function, R target)
Same as |
| public default <R extends MutableBooleanCollection> R | collectBoolean(FloatToBooleanFunction function, R target)
Returns the target |
| public default <R extends MutableByteCollection> R | collectByte(FloatToByteFunction function, R target)
Returns the target |
| public default <R extends MutableCharCollection> R | collectChar(FloatToCharFunction function, R target)
Returns the target |
| public default <R extends MutableDoubleCollection> R | collectDouble(FloatToDoubleFunction function, R target)
Returns the target |
| public default <R extends MutableFloatCollection> R | collectFloat(FloatToFloatFunction function, R target)
Returns the target |
| public default <R extends MutableIntCollection> R | collectInt(FloatToIntFunction function, R target)
Returns the target |
| public default <R extends MutableLongCollection> R | collectLong(FloatToLongFunction function, R target)
Returns the target |
| public default <R extends MutableShortCollection> R | collectShort(FloatToShortFunction function, R target)
Returns the target |
| public boolean | contains(float value)
Returns true if the value is contained in the FloatIterable, and false if it is not. |
| public default boolean | containsAll(float... source)
Returns true if all of the values specified in the source array are contained in the FloatIterable, and false if they are not. |
| public default boolean | containsAll(FloatIterable source)
Returns true if all of the values specified in the source FloatIterable are contained in the FloatIterable, and false if they are not. |
| public default boolean | containsAny(float... source)
Returns true if any of the values specified in the source array are contained in the FloatIterable, and false if they are not. |
| public default boolean | containsAny(FloatIterable source)
Returns true if any of the values specified in the source FloatIterable are contained in the FloatIterable, and false if they are not. |
| public default boolean | containsNone(float... source)
Returns true if none of the values specified in the source array are contained in the FloatIterable, and false if they are. |
| public default boolean | containsNone(FloatIterable source)
Returns true if none of the values specified in the source FloatIterable are contained in the FloatIterable, and false if they are. |
| public int | count(FloatPredicate predicate)
Returns a count of the number of elements in the FloatIterable that return true for the specified predicate. |
| public float | |
| public void | |
| public default <V, R extends Collection | flatCollect(FloatToObjectFunction<? extends Iterable<V>> function, R target)
|
| public FloatIterator | floatIterator()
Returns a primitive iterator that can be used to iterate over the FloatIterable in an imperative style. |
| public default void | |
| public <T> T | |
| public default boolean | injectIntoBoolean(boolean injectedValue, BooleanFloatToBooleanFunction function)
Returns the final boolean result of evaluating function using each element of the iterable and the previous evaluation result as the parameters. |
| public default byte | injectIntoByte(byte injectedValue, ByteFloatToByteFunction function)
Returns the final byte result of evaluating function using each element of the iterable and the previous evaluation result as the parameters. |
| public default char | injectIntoChar(char injectedValue, CharFloatToCharFunction function)
Returns the final char result of evaluating function using each element of the iterable and the previous evaluation result as the parameters. |
| public default double | injectIntoDouble(double injectedValue, DoubleFloatToDoubleFunction function)
Returns the final double result of evaluating function using each element of the iterable and the previous evaluation result as the parameters. |
| public default float | injectIntoFloat(float injectedValue, FloatFloatToFloatFunction function)
Returns the final float result of evaluating function using each element of the iterable and the previous evaluation result as the parameters. |
| public default int | injectIntoInt(int injectedValue, IntFloatToIntFunction function)
Returns the final int result of evaluating function using each element of the iterable and the previous evaluation result as the parameters. |
| public default long | injectIntoLong(long injectedValue, LongFloatToLongFunction function)
Returns the final long result of evaluating function using each element of the iterable and the previous evaluation result as the parameters. |
| public default short | injectIntoShort(short injectedValue, ShortFloatToShortFunction function)
Returns the final short result of evaluating function using each element of the iterable and the previous evaluation result as the parameters. |
| public float | |
| public float | |
| public double | |
| public default double | |
| public float | |
| public float | |
| public default boolean | noneSatisfy(FloatPredicate predicate)
Returns true if none of the elements in the FloatIterable return true for the specified predicate, otherwise returns false. |
| public default double | |
| public default double | |
| public FloatIterable | reject(FloatPredicate predicate)
Returns a new FloatIterable with all of the elements in the FloatIterable that return false for the specified predicate. |
| public default <R extends MutableFloatCollection> R | reject(FloatPredicate predicate, R target)
Same as |
| public FloatIterable | select(FloatPredicate predicate)
Returns a new FloatIterable with all of the elements in the FloatIterable that return true for the specified predicate. |
| public default <R extends MutableFloatCollection> R | select(FloatPredicate predicate, R target)
Same as |
| public double | |
| public default DoubleSummaryStatistics | |
| public default FloatIterable | |
| public float[] | |
| public default float[] | |
| public MutableFloatBag | |
| public MutableFloatList | |
| public MutableFloatSet | |
| public float[] | |
| public MutableFloatList | |
| public default MutableFloatList | toSortedList(FloatComparator comparator)
Converts the collection to a MutableFloatList implementation sorted using the provided comparator. |
| public default <T> MutableFloatList | toSortedListBy(FloatToObjectFunction<T> function)
Converts the collection to a MutableFloatListImplementation sorted based on the natural order of the key returned
by |
| public default <T> MutableFloatList | toSortedListBy(FloatToObjectFunction<T> function, Comparator<? super T> comparator)
Converts the collection to a MutableFloatList implementation, which is sorted based on the key returned by
|
| allSatisfy | back to summary |
|---|---|
| public boolean allSatisfy(FloatPredicate predicate) Returns true if all of the elements in the FloatIterable return true for the specified predicate, otherwise returns false. | |
| anySatisfy | back to summary |
|---|---|
| public boolean anySatisfy(FloatPredicate predicate) Returns true if any of the elements in the FloatIterable return true for the specified predicate, otherwise returns false. | |
| asLazy | back to summary |
|---|---|
| public LazyFloatIterable asLazy() Returns a LazyFloatIterable adapter wrapping the source FloatIterable. | |
| average | back to summary |
|---|---|
| public double average() | |
| averageIfEmpty | back to summary |
|---|---|
public default double averageIfEmpty(double defaultValue)
| |
| chunk | back to summary |
|---|---|
| public default RichIterable Partitions elements in fixed size chunks.
| |
| collect | back to summary |
|---|---|
| public <V> RichIterable Returns a new collection with the results of applying the specified function on each element of the source collection. This method is also commonly called transform or map. | |
| collect | back to summary |
|---|---|
| public default <V, R extends Collection Same as
| |
| collectBoolean | back to summary |
|---|---|
| public default <R extends MutableBooleanCollection> R collectBoolean(FloatToBooleanFunction function, R target) Returns the target
| |
| collectByte | back to summary |
|---|---|
| public default <R extends MutableByteCollection> R collectByte(FloatToByteFunction function, R target) Returns the target
| |
| collectChar | back to summary |
|---|---|
| public default <R extends MutableCharCollection> R collectChar(FloatToCharFunction function, R target) Returns the target
| |
| collectDouble | back to summary |
|---|---|
| public default <R extends MutableDoubleCollection> R collectDouble(FloatToDoubleFunction function, R target) Returns the target
| |
| collectFloat | back to summary |
|---|---|
| public default <R extends MutableFloatCollection> R collectFloat(FloatToFloatFunction function, R target) Returns the target
| |
| collectInt | back to summary |
|---|---|
| public default <R extends MutableIntCollection> R collectInt(FloatToIntFunction function, R target) Returns the target
| |
| collectLong | back to summary |
|---|---|
| public default <R extends MutableLongCollection> R collectLong(FloatToLongFunction function, R target) Returns the target
| |
| collectShort | back to summary |
|---|---|
| public default <R extends MutableShortCollection> R collectShort(FloatToShortFunction function, R target) Returns the target
| |
| contains | back to summary |
|---|---|
| public boolean contains(float value) Returns true if the value is contained in the FloatIterable, and false if it is not. | |
| containsAll | back to summary |
|---|---|
| public default boolean containsAll(float... source) Returns true if all of the values specified in the source array are contained in the FloatIterable, and false if they are not. | |
| containsAll | back to summary |
|---|---|
| public default boolean containsAll(FloatIterable source) Returns true if all of the values specified in the source FloatIterable are contained in the FloatIterable, and false if they are not. | |
| containsAny | back to summary |
|---|---|
| public default boolean containsAny(float... source) Returns true if any of the values specified in the source array are contained in the FloatIterable, and false if they are not.
| |
| containsAny | back to summary |
|---|---|
| public default boolean containsAny(FloatIterable source) Returns true if any of the values specified in the source FloatIterable are contained in the FloatIterable, and false if they are not.
| |
| containsNone | back to summary |
|---|---|
| public default boolean containsNone(float... source) Returns true if none of the values specified in the source array are contained in the FloatIterable, and false if they are.
| |
| containsNone | back to summary |
|---|---|
| public default boolean containsNone(FloatIterable source) Returns true if none of the values specified in the source FloatIterable are contained in the FloatIterable, and false if they are.
| |
| count | back to summary |
|---|---|
| public int count(FloatPredicate predicate) Returns a count of the number of elements in the FloatIterable that return true for the specified predicate. | |
| detectIfNone | back to summary |
|---|---|
| public float detectIfNone(FloatPredicate predicate, float ifNone) | |
| each | back to summary |
|---|---|
| public void each(FloatProcedure procedure) A synonym for forEach.
| |
| flatCollect | back to summary |
|---|---|
| public default <V, R extends Collection
| |
| floatIterator | back to summary |
|---|---|
| public FloatIterator floatIterator() Returns a primitive iterator that can be used to iterate over the FloatIterable in an imperative style. | |
| forEach | back to summary |
|---|---|
| public default void forEach(FloatProcedure procedure) Applies the FloatProcedure to each element in the FloatIterable. | |
| injectInto | back to summary |
|---|---|
| public <T> T injectInto(T injectedValue, ObjectFloatToObjectFunction<? super T, ? extends T> function) | |
| injectIntoBoolean | back to summary |
|---|---|
| public default boolean injectIntoBoolean(boolean injectedValue, BooleanFloatToBooleanFunction function) Returns the final boolean result of evaluating function using each element of the iterable and the previous evaluation result as the parameters. The injected value is used for the first parameter of the first evaluation, and the current item in the iterable is used as the second parameter.
| |
| injectIntoByte | back to summary |
|---|---|
| public default byte injectIntoByte(byte injectedValue, ByteFloatToByteFunction function) Returns the final byte result of evaluating function using each element of the iterable and the previous evaluation result as the parameters. The injected value is used for the first parameter of the first evaluation, and the current item in the iterable is used as the second parameter.
| |
| injectIntoChar | back to summary |
|---|---|
| public default char injectIntoChar(char injectedValue, CharFloatToCharFunction function) Returns the final char result of evaluating function using each element of the iterable and the previous evaluation result as the parameters. The injected value is used for the first parameter of the first evaluation, and the current item in the iterable is used as the second parameter.
| |
| injectIntoDouble | back to summary |
|---|---|
| public default double injectIntoDouble(double injectedValue, DoubleFloatToDoubleFunction function) Returns the final double result of evaluating function using each element of the iterable and the previous evaluation result as the parameters. The injected value is used for the first parameter of the first evaluation, and the current item in the iterable is used as the second parameter.
| |
| injectIntoFloat | back to summary |
|---|---|
| public default float injectIntoFloat(float injectedValue, FloatFloatToFloatFunction function) Returns the final float result of evaluating function using each element of the iterable and the previous evaluation result as the parameters. The injected value is used for the first parameter of the first evaluation, and the current item in the iterable is used as the second parameter.
| |
| injectIntoInt | back to summary |
|---|---|
| public default int injectIntoInt(int injectedValue, IntFloatToIntFunction function) Returns the final int result of evaluating function using each element of the iterable and the previous evaluation result as the parameters. The injected value is used for the first parameter of the first evaluation, and the current item in the iterable is used as the second parameter.
| |
| injectIntoLong | back to summary |
|---|---|
| public default long injectIntoLong(long injectedValue, LongFloatToLongFunction function) Returns the final long result of evaluating function using each element of the iterable and the previous evaluation result as the parameters. The injected value is used for the first parameter of the first evaluation, and the current item in the iterable is used as the second parameter.
| |
| injectIntoShort | back to summary |
|---|---|
| public default short injectIntoShort(short injectedValue, ShortFloatToShortFunction function) Returns the final short result of evaluating function using each element of the iterable and the previous evaluation result as the parameters. The injected value is used for the first parameter of the first evaluation, and the current item in the iterable is used as the second parameter.
| |
| max | back to summary |
|---|---|
| public float max() | |
| maxIfEmpty | back to summary |
|---|---|
| public float maxIfEmpty(float defaultValue) | |
| median | back to summary |
|---|---|
| public double median() | |
| medianIfEmpty | back to summary |
|---|---|
public default double medianIfEmpty(double defaultValue)
| |
| min | back to summary |
|---|---|
| public float min() | |
| minIfEmpty | back to summary |
|---|---|
| public float minIfEmpty(float defaultValue) | |
| noneSatisfy | back to summary |
|---|---|
| public default boolean noneSatisfy(FloatPredicate predicate) Returns true if none of the elements in the FloatIterable return true for the specified predicate, otherwise returns false. | |
| reduce | back to summary |
|---|---|
public default double reduce(DoubleFloatToDoubleFunction accumulator)
| |
| reduceIfEmpty | back to summary |
|---|---|
public default double reduceIfEmpty(DoubleFloatToDoubleFunction accumulator, double defaultValue)
| |
| reject | back to summary |
|---|---|
| public FloatIterable reject(FloatPredicate predicate) Returns a new FloatIterable with all of the elements in the FloatIterable that return false for the specified predicate. | |
| reject | back to summary |
|---|---|
| public default <R extends MutableFloatCollection> R reject(FloatPredicate predicate, R target) Same as
| |
| select | back to summary |
|---|---|
| public FloatIterable select(FloatPredicate predicate) Returns a new FloatIterable with all of the elements in the FloatIterable that return true for the specified predicate. | |
| select | back to summary |
|---|---|
| public default <R extends MutableFloatCollection> R select(FloatPredicate predicate, R target) Same as
| |
| sum | back to summary |
|---|---|
| public double sum() | |
| summaryStatistics | back to summary |
|---|---|
public default DoubleSummaryStatistics summaryStatistics()
| |
| tap | back to summary |
|---|---|
public default FloatIterable tap(FloatProcedure procedure)
| |
| toArray | back to summary |
|---|---|
| public float[] toArray() Converts the FloatIterable to a primitive float array. | |
| toArray | back to summary |
|---|---|
| public default float[] toArray(float[] target) Converts the FloatIterable to a primitive float array. If the collection fits into the provided array it is used to store its elements and is returned from the method, otherwise a new array of the appropriate size is allocated and returned. If the iterable is empty, the target array is returned unchanged. | |
| toBag | back to summary |
|---|---|
| public MutableFloatBag toBag() Converts the FloatIterable to a new MutableFloatBag. | |
| toList | back to summary |
|---|---|
| public MutableFloatList toList() Converts the FloatIterable to a new MutableFloatList. | |
| toSet | back to summary |
|---|---|
| public MutableFloatSet toSet() Converts the FloatIterable to a new MutableFloatSet. | |
| toSortedArray | back to summary |
|---|---|
| public float[] toSortedArray() | |
| toSortedList | back to summary |
|---|---|
| public MutableFloatList toSortedList() | |
| toSortedList | back to summary |
|---|---|
| public default MutableFloatList toSortedList(FloatComparator comparator) Converts the collection to a MutableFloatList implementation sorted using the provided comparator. | |
| toSortedListBy | back to summary |
|---|---|
| public default <T> MutableFloatList toSortedListBy(FloatToObjectFunction<T> function) Converts the collection to a MutableFloatListImplementation sorted based on the natural order of the key returned
by | |
| toSortedListBy | back to summary |
|---|---|
| public default <T> MutableFloatList toSortedListBy(FloatToObjectFunction<T> function, Comparator<? super T> comparator) Converts the collection to a MutableFloatList implementation, which is sorted based on the key returned by
| |