Class LazyDoubleIterate
- java.lang.Object
-
- org.eclipse.collections.impl.utility.primitive.LazyDoubleIterate
-
public final class LazyDoubleIterate extends Object
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
All Methods Static Methods Concrete Methods Modifier and Type Method Description static 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 Detail
-
adapt
public static LazyDoubleIterable adapt(DoubleIterable iterable)
Creates a deferred double iterable for the specified double iterable.
-
select
public static LazyDoubleIterable select(DoubleIterable iterable, DoublePredicate predicate)
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
public static LazyDoubleIterable empty()
-
tap
public static LazyDoubleIterable tap(DoubleIterable iterable, DoubleProcedure procedure)
Creates a deferred tap iterable for the specified iterable.- Since:
- 9.0
-
-