Class LazyDoubleIterate
java.lang.Object
org.eclipse.collections.impl.utility.primitive.LazyDoubleIterate
LazyDoubleIterate is a factory class which creates "deferred" double iterables around the specified double iterables. A "deferred"
double iterable performs some operation, such as filtering or transforming, when the result double 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 LazyDoubleIterable
adapt
(DoubleIterable iterable) Creates a deferred double iterable for the specified double iterable.static <V> LazyIterable<V>
collect
(DoubleIterable iterable, DoubleToObjectFunction<? extends V> function) Creates a deferred transforming double iterable for the specified double iterable.static <V> LazyIterable<V>
collectIf
(DoubleIterable iterable, DoublePredicate predicate, DoubleToObjectFunction<? extends V> function) Creates a deferred filtering and transforming double iterable for the specified double iterable.static LazyDoubleIterable
empty()
static <V> LazyIterable<V>
flatCollect
(DoubleIterable iterable, DoubleToObjectFunction<? extends Iterable<V>> function) Creates a deferred transforming and flattening double iterable for the specified double iterable.static LazyDoubleIterable
select
(DoubleIterable iterable, DoublePredicate predicate) Creates a deferred filtering double iterable for the specified double iterable.static LazyDoubleIterable
tap
(DoubleIterable iterable, DoubleProcedure procedure) Creates a deferred tap iterable for the specified iterable.
-
Method Details
-
adapt
Creates a deferred double iterable for the specified double iterable. -
select
Creates a deferred filtering double iterable for the specified double iterable. -
collect
public static <V> LazyIterable<V> collect(DoubleIterable iterable, DoubleToObjectFunction<? extends V> function) Creates a deferred transforming double iterable for the specified double iterable. -
flatCollect
public static <V> LazyIterable<V> flatCollect(DoubleIterable iterable, DoubleToObjectFunction<? extends Iterable<V>> function) Creates a deferred transforming and flattening double iterable for the specified double iterable.- Since:
- 9.0
-
collectIf
public static <V> LazyIterable<V> collectIf(DoubleIterable iterable, DoublePredicate predicate, DoubleToObjectFunction<? extends V> function) Creates a deferred filtering and transforming double iterable for the specified double iterable. -
empty
-
tap
Creates a deferred tap iterable for the specified iterable.- Since:
- 9.0
-