public interface FloatIterable
extends java.lang.Iterable<java.lang.Float>
Iterable that reduces (un)boxing| Modifier and Type | Method and Description |
|---|---|
default <E> ObjectIterable<E> |
arrayflatMap(FloatFunction<E[]> mapper)
A Helper function to reduce the usage of Streams and allows to convert a Iterable to something else.
|
default FloatAsyncBuilder |
asAsync()
Creates a Async Builder for moving work of the thread.
|
default int |
count(FloatPredicate filter)
Helper function to reduce stream usage that allows to count the valid elements.
|
default FloatIterable |
distinct()
A Helper function to reduce the usage of Streams and allows to filter out duplicated elements
|
default FloatIterable |
filter(FloatPredicate filter)
A Helper function to reduce the usage of Streams and allows to filter out unwanted elements
|
default float |
findFirst(FloatPredicate filter)
Helper function to reduce stream usage that allows to filter for the first match.
|
default <E,V extends java.lang.Iterable<E>> |
flatMap(FloatFunction<V> mapper)
A Helper function to reduce the usage of Streams and allows to convert a Iterable to something else.
|
default void |
forEach(java.util.function.Consumer<? super java.lang.Float> action)
Deprecated.
Please use the corresponding type-specific function instead.
|
default <E> void |
forEach(E input,
ObjectFloatConsumer<E> action)
Helper function to reduce Lambda usage and allow for more method references, since these are faster/cleaner.
|
default void |
forEach(FloatConsumer action)
A Type Specific foreach function that reduces (un)boxing
|
default void |
forEachIndexed(IntFloatConsumer action)
A Indexed forEach implementation that allows you to keep track of how many elements were already iterated over.
|
FloatIterator |
iterator()
Returns an iterator over elements of type
T. |
default FloatIterable |
limit(long limit)
A Helper function to reduce the usage of Streams and allows to limit the amount of elements
|
default <E> ObjectIterable<E> |
map(FloatFunction<E> mapper)
A Helper function to reduce the usage of Streams and allows to convert a Iterable to something else.
|
default boolean |
matchesAll(FloatPredicate filter)
Helper function to reduce stream usage that allows to filter for all matches.
|
default boolean |
matchesAny(FloatPredicate filter)
Helper function to reduce stream usage that allows to filter for any matches.
|
default boolean |
matchesNone(FloatPredicate filter)
Helper function to reduce stream usage that allows to filter for no matches.
|
default FloatIterable |
peek(FloatConsumer action)
A Helper function to reduce the usage of Streams and allows to preview elements before they are iterated through
|
default <E extends FloatCollection> |
pour(E collection)
A Helper function to reduce the usage of Streams and allows to collect all elements
|
default FloatList |
pourAsList()
A Helper function that reduces the usage of streams and allows to collect all elements as a ArrayList
|
default FloatSet |
pourAsSet()
A Helper function that reduces the usage of streams and allows to collect all elements as a LinkedHashSet
|
default float |
reduce(float identity,
FloatFloatUnaryOperator operator)
Performs a reduction on the
elements of this Iterable
|
default float |
reduce(FloatFloatUnaryOperator operator)
Performs a reduction on the
elements of this Iterable
|
default FloatIterable |
repeat(int repeats)
A Helper function to reduce the usage of Streams and allows to repeat elements a desired amount of times
|
default FloatIterable |
sorted(FloatComparator sorter)
A Helper function to reduce the usage of Streams and allows to sort the elements
|
default FloatSplititerator |
spliterator()
A Type Specific Type Splititerator to reduce boxing/unboxing
|
default float[] |
toFloatArray()
A Helper function that reduces the usage of streams and allows to collect all elements as a Array
|
FloatIterator iterator()
T.iterator in interface java.lang.Iterable<java.lang.Float>default void forEach(FloatConsumer action)
action - The action to be performed for each elementjava.lang.NullPointerException - if the specified action is nullIterable.forEach(Consumer)The default implementation behaves as if:
iterator().forEachRemaining(action);
@Deprecated default void forEach(java.util.function.Consumer<? super java.lang.Float> action)
This default implementation delegates to the corresponding type-specific function.
forEach in interface java.lang.Iterable<java.lang.Float>default void forEachIndexed(IntFloatConsumer action)
action - The action to be performed for each elementjava.lang.NullPointerException - if the specified action is nulldefault <E> void forEach(E input,
ObjectFloatConsumer<E> action)
E - the generic type of the Objectinput - the object that should be includedaction - The action to be performed for each elementjava.lang.NullPointerException - if the specified action is nulldefault FloatSplititerator spliterator()
spliterator in interface java.lang.Iterable<java.lang.Float>default FloatAsyncBuilder asAsync()
FloatAsyncBuilderdefault <E> ObjectIterable<E> map(FloatFunction<E> mapper)
E - The return type.mapper - the mapping functiondefault <E,V extends java.lang.Iterable<E>> ObjectIterable<E> flatMap(FloatFunction<V> mapper)
V - The return type supplier.E - The return type.mapper - the flatMapping functiondefault <E> ObjectIterable<E> arrayflatMap(FloatFunction<E[]> mapper)
E - The return type.mapper - the flatMapping functiondefault FloatIterable filter(FloatPredicate filter)
filter - the elements that should be kept.default FloatIterable distinct()
default FloatIterable repeat(int repeats)
repeats - how many times the elements should be repeateddefault FloatIterable limit(long limit)
limit - the amount of elements it should be limited todefault FloatIterable sorted(FloatComparator sorter)
sorter - that sorts the elements.default FloatIterable peek(FloatConsumer action)
action - the action that should be applieddefault <E extends FloatCollection> E pour(E collection)
E - the collection typecollection - that the elements should be inserted todefault FloatList pourAsList()
default FloatSet pourAsSet()
default float[] toFloatArray()
default boolean matchesAny(FloatPredicate filter)
filter - that should be applieddefault boolean matchesNone(FloatPredicate filter)
filter - that should be applieddefault boolean matchesAll(FloatPredicate filter)
filter - that should be applieddefault float findFirst(FloatPredicate filter)
filter - that should be applieddefault float reduce(float identity,
FloatFloatUnaryOperator operator)
operator - the operation that should be appliedidentity - the start valuedefault float reduce(FloatFloatUnaryOperator operator)
operator - the operation that should be applieddefault int count(FloatPredicate filter)
filter - that should be applied