Class LazyBooleanIterate
- java.lang.Object
-
- org.eclipse.collections.impl.utility.primitive.LazyBooleanIterate
-
public final class LazyBooleanIterate extends java.lang.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
-
-
Field Summary
Fields Modifier and Type Field Description private static LazyBooleanIterable
EMPTY_ITERABLE
-
Constructor Summary
Constructors Modifier Constructor Description private
LazyBooleanIterate()
-
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 java.lang.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.
-
-
-
Field Detail
-
EMPTY_ITERABLE
private static final LazyBooleanIterable EMPTY_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 java.lang.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
-
-