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

public final Class LazyBooleanIterate

extends Object
Class Inheritance
Imports
org.eclipse.collections.api.BooleanIterable, .LazyBooleanIterable, .LazyIterable, org.eclipse.collections.api.block.function.primitive.BooleanToObjectFunction, org.eclipse.collections.api.block.predicate.primitive.BooleanPredicate, org.eclipse.collections.api.block.procedure.primitive.BooleanProcedure, org.eclipse.collections.impl.factory.primitive.BooleanLists, org.eclipse.collections.impl.lazy.primitive.CollectBooleanToObjectIterable, .FlatCollectBooleanToObjectIterable, .LazyBooleanIterableAdapter, .SelectBooleanIterable, .TapBooleanIterable

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

Modifier and TypeField and Description
private static final LazyBooleanIterable

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public static LazyBooleanIterable
adapt(BooleanIterable iterable)

Creates a deferred boolean iterable for the specified boolean iterable.

public static <V> LazyIterable<V>
collect(BooleanIterable iterable, BooleanToObjectFunction<? extends V> function)

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

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.

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

public static LazyBooleanIterable
select(BooleanIterable iterable, BooleanPredicate predicate)

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

public static LazyBooleanIterable
tap(BooleanIterable iterable, BooleanProcedure 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 LazyBooleanIterable EMPTY_ITERABLE

Constructor Detail

LazyBooleanIterateback to summary
private LazyBooleanIterate()

Method Detail

adaptback to summary
public static LazyBooleanIterable adapt(BooleanIterable iterable)

Creates a deferred boolean iterable for the specified boolean iterable.

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

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

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

emptyback to summary
public static LazyBooleanIterable empty()
flatCollectback to summary
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
selectback to summary
public static LazyBooleanIterable select(BooleanIterable iterable, BooleanPredicate predicate)

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

tapback to summary
public static LazyBooleanIterable tap(BooleanIterable iterable, BooleanProcedure procedure)

Creates a deferred tap iterable for the specified iterable.

Since
9.0