Class LazyFloatIterate
- java.lang.Object
-
- org.eclipse.collections.impl.utility.primitive.LazyFloatIterate
-
public final class LazyFloatIterate extends java.lang.ObjectLazyFloatIterate is a factory class which creates "deferred" float iterables around the specified float iterables. A "deferred" float iterable performs some operation, such as filtering or transforming, when the result float iterable is iterated over. This makes the operation very memory efficient, because you don't have to create intermediate collections during the operation. This file was automatically generated from template file lazyPrimitiveIterate.stg.- Since:
- 5.0
-
-
Field Summary
Fields Modifier and Type Field Description private static LazyFloatIterableEMPTY_ITERABLE
-
Constructor Summary
Constructors Modifier Constructor Description privateLazyFloatIterate()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static LazyFloatIterableadapt(FloatIterable iterable)Creates a deferred float iterable for the specified float iterable.static <V> LazyIterable<V>collect(FloatIterable iterable, FloatToObjectFunction<? extends V> function)Creates a deferred transforming float iterable for the specified float iterable.static <V> LazyIterable<V>collectIf(FloatIterable iterable, FloatPredicate predicate, FloatToObjectFunction<? extends V> function)Creates a deferred filtering and transforming float iterable for the specified float iterable.static LazyFloatIterableempty()static <V> LazyIterable<V>flatCollect(FloatIterable iterable, FloatToObjectFunction<? extends java.lang.Iterable<V>> function)Creates a deferred transforming and flattening float iterable for the specified float iterable.static LazyFloatIterableselect(FloatIterable iterable, FloatPredicate predicate)Creates a deferred filtering float iterable for the specified float iterable.static LazyFloatIterabletap(FloatIterable iterable, FloatProcedure procedure)Creates a deferred tap iterable for the specified iterable.
-
-
-
Field Detail
-
EMPTY_ITERABLE
private static final LazyFloatIterable EMPTY_ITERABLE
-
-
Method Detail
-
adapt
public static LazyFloatIterable adapt(FloatIterable iterable)
Creates a deferred float iterable for the specified float iterable.
-
select
public static LazyFloatIterable select(FloatIterable iterable, FloatPredicate predicate)
Creates a deferred filtering float iterable for the specified float iterable.
-
collect
public static <V> LazyIterable<V> collect(FloatIterable iterable, FloatToObjectFunction<? extends V> function)
Creates a deferred transforming float iterable for the specified float iterable.
-
flatCollect
public static <V> LazyIterable<V> flatCollect(FloatIterable iterable, FloatToObjectFunction<? extends java.lang.Iterable<V>> function)
Creates a deferred transforming and flattening float iterable for the specified float iterable.- Since:
- 9.0
-
collectIf
public static <V> LazyIterable<V> collectIf(FloatIterable iterable, FloatPredicate predicate, FloatToObjectFunction<? extends V> function)
Creates a deferred filtering and transforming float iterable for the specified float iterable.
-
empty
public static LazyFloatIterable empty()
-
tap
public static LazyFloatIterable tap(FloatIterable iterable, FloatProcedure procedure)
Creates a deferred tap iterable for the specified iterable.- Since:
- 9.0
-
-