Class LazyIntIterate
- java.lang.Object
-
- org.eclipse.collections.impl.utility.primitive.LazyIntIterate
-
public final class LazyIntIterate extends Object
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
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static LazyIntIterable
adapt(IntIterable iterable)
Creates a deferred int iterable for the specified int iterable.static <V> LazyIterable<V>
collect(IntIterable iterable, IntToObjectFunction<? extends V> function)
Creates a deferred transforming int iterable for the specified int iterable.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.static LazyIntIterable
empty()
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.static LazyIntIterable
select(IntIterable iterable, IntPredicate predicate)
Creates a deferred filtering int iterable for the specified int iterable.static LazyIntIterable
tap(IntIterable iterable, IntProcedure procedure)
Creates a deferred tap iterable for the specified iterable.
-
-
-
Method Detail
-
adapt
public static LazyIntIterable adapt(IntIterable iterable)
Creates a deferred int iterable for the specified int iterable.
-
select
public static LazyIntIterable select(IntIterable iterable, IntPredicate predicate)
Creates a deferred filtering int iterable for the specified int iterable.
-
collect
public static <V> LazyIterable<V> collect(IntIterable iterable, IntToObjectFunction<? extends V> function)
Creates a deferred transforming int iterable for the specified int iterable.
-
flatCollect
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
-
collectIf
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.
-
empty
public static LazyIntIterable empty()
-
tap
public static LazyIntIterable tap(IntIterable iterable, IntProcedure procedure)
Creates a deferred tap iterable for the specified iterable.- Since:
- 9.0
-
-