Top Description Fields Constructors Methods
org.eclipse.collections.impl.utility.primitive

public final Class LazyDoubleIterate

extends Object
Class Inheritance
Imports
org.eclipse.collections.api.DoubleIterable, .LazyDoubleIterable, .LazyIterable, org.eclipse.collections.api.block.function.primitive.DoubleToObjectFunction, org.eclipse.collections.api.block.predicate.primitive.DoublePredicate, org.eclipse.collections.api.block.procedure.primitive.DoubleProcedure, org.eclipse.collections.impl.factory.primitive.DoubleLists, org.eclipse.collections.impl.lazy.primitive.CollectDoubleToObjectIterable, .FlatCollectDoubleToObjectIterable, .LazyDoubleIterableAdapter, .SelectDoubleIterable, .TapDoubleIterable

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

Field Summary

Modifier and TypeField and Description
private static final LazyDoubleIterable

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public static LazyDoubleIterable
adapt(DoubleIterable iterable)

Creates a deferred double iterable for the specified double iterable.

public static <V> LazyIterable<V>
collect(DoubleIterable iterable, DoubleToObjectFunction<? extends V> function)

Creates a deferred transforming double iterable for the specified double iterable.

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.

public static LazyDoubleIterable
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.

public static LazyDoubleIterable
select(DoubleIterable iterable, DoublePredicate predicate)

Creates a deferred filtering double iterable for the specified double iterable.

public static LazyDoubleIterable
tap(DoubleIterable iterable, DoubleProcedure procedure)

Creates a deferred tap iterable for the specified iterable.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

EMPTY_ITERABLEback to summary
private static final LazyDoubleIterable EMPTY_ITERABLE

Constructor Detail

LazyDoubleIterateback to summary
private LazyDoubleIterate()

Method Detail

adaptback to summary
public static LazyDoubleIterable adapt(DoubleIterable iterable)

Creates a deferred double iterable for the specified double iterable.

collectback to summary
public static <V> LazyIterable<V> collect(DoubleIterable iterable, DoubleToObjectFunction<? extends V> function)

Creates a deferred transforming double iterable for the specified double iterable.

collectIfback to summary
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.

emptyback to summary
public static LazyDoubleIterable empty()
flatCollectback to summary
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
selectback to summary
public static LazyDoubleIterable select(DoubleIterable iterable, DoublePredicate predicate)

Creates a deferred filtering double iterable for the specified double iterable.

tapback to summary
public static LazyDoubleIterable tap(DoubleIterable iterable, DoubleProcedure procedure)

Creates a deferred tap iterable for the specified iterable.

Since
9.0