Class LazyFloatIterate
java.lang.Object
org.eclipse.collections.impl.utility.primitive.LazyFloatIterate
LazyFloatIterate 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
-
Method Summary
Modifier and TypeMethodDescriptionstatic LazyFloatIterable
adapt
(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 LazyFloatIterable
empty()
static <V> LazyIterable<V>
flatCollect
(FloatIterable iterable, FloatToObjectFunction<? extends Iterable<V>> function) Creates a deferred transforming and flattening float iterable for the specified float iterable.static LazyFloatIterable
select
(FloatIterable iterable, FloatPredicate predicate) Creates a deferred filtering float iterable for the specified float iterable.static LazyFloatIterable
tap
(FloatIterable iterable, FloatProcedure procedure) Creates a deferred tap iterable for the specified iterable.
-
Method Details
-
adapt
Creates a deferred float iterable for the specified float iterable. -
select
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 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
-
tap
Creates a deferred tap iterable for the specified iterable.- Since:
- 9.0
-