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

public final Class LazyIntIterate

extends Object
Class Inheritance
Imports
org.eclipse.collections.api.IntIterable, .LazyIntIterable, .LazyIterable, org.eclipse.collections.api.block.function.primitive.IntToObjectFunction, org.eclipse.collections.api.block.predicate.primitive.IntPredicate, org.eclipse.collections.api.block.procedure.primitive.IntProcedure, org.eclipse.collections.impl.factory.primitive.IntLists, org.eclipse.collections.impl.lazy.primitive.CollectIntToObjectIterable, .FlatCollectIntToObjectIterable, .LazyIntIterableAdapter, .SelectIntIterable, .TapIntIterable

LazyIntIterate is a factory class which creates "deferred" int iterables around the specified int iterables. A "deferred" int iterable performs some operation, such as filtering or transforming, when the result int 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 LazyIntIterable

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public static LazyIntIterable
adapt(IntIterable iterable)

Creates a deferred int iterable for the specified int iterable.

public static <V> LazyIterable<V>
collect(IntIterable iterable, IntToObjectFunction<? extends V> function)

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

public static <V> LazyIterable<V>
collectIf(IntIterable iterable, IntPredicate predicate, IntToObjectFunction<? extends V> function)

Creates a deferred filtering and transforming int iterable for the specified int iterable.

public static LazyIntIterable
public static <V> LazyIterable<V>
flatCollect(IntIterable iterable, IntToObjectFunction<? extends Iterable<V>> function)

Creates a deferred transforming and flattening int iterable for the specified int iterable.

public static LazyIntIterable
select(IntIterable iterable, IntPredicate predicate)

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

public static LazyIntIterable
tap(IntIterable iterable, IntProcedure 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 LazyIntIterable EMPTY_ITERABLE

Constructor Detail

LazyIntIterateback to summary
private LazyIntIterate()

Method Detail

adaptback to summary
public static LazyIntIterable adapt(IntIterable iterable)

Creates a deferred int iterable for the specified int iterable.

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

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

collectIfback to summary
public static <V> LazyIterable<V> collectIf(IntIterable iterable, IntPredicate predicate, IntToObjectFunction<? extends V> function)

Creates a deferred filtering and transforming int iterable for the specified int iterable.

emptyback to summary
public static LazyIntIterable empty()
flatCollectback to summary
public static <V> LazyIterable<V> flatCollect(IntIterable iterable, IntToObjectFunction<? extends Iterable<V>> function)

Creates a deferred transforming and flattening int iterable for the specified int iterable.

Since
9.0
selectback to summary
public static LazyIntIterable select(IntIterable iterable, IntPredicate predicate)

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

tapback to summary
public static LazyIntIterable tap(IntIterable iterable, IntProcedure procedure)

Creates a deferred tap iterable for the specified iterable.

Since
9.0