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