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

public final Class LazyCharIterate

extends Object
Class Inheritance
Imports
org.eclipse.collections.api.CharIterable, .LazyCharIterable, .LazyIterable, org.eclipse.collections.api.block.function.primitive.CharToObjectFunction, org.eclipse.collections.api.block.predicate.primitive.CharPredicate, org.eclipse.collections.api.block.procedure.primitive.CharProcedure, org.eclipse.collections.impl.factory.primitive.CharLists, org.eclipse.collections.impl.lazy.primitive.CollectCharToObjectIterable, .FlatCollectCharToObjectIterable, .LazyCharIterableAdapter, .SelectCharIterable, .TapCharIterable

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

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public static LazyCharIterable
adapt(CharIterable iterable)

Creates a deferred char iterable for the specified char iterable.

public static <V> LazyIterable<V>
collect(CharIterable iterable, CharToObjectFunction<? extends V> function)

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

public static <V> LazyIterable<V>
collectIf(CharIterable iterable, CharPredicate predicate, CharToObjectFunction<? extends V> function)

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

public static LazyCharIterable
public static <V> LazyIterable<V>
flatCollect(CharIterable iterable, CharToObjectFunction<? extends Iterable<V>> function)

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

public static LazyCharIterable
select(CharIterable iterable, CharPredicate predicate)

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

public static LazyCharIterable
tap(CharIterable iterable, CharProcedure 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 LazyCharIterable EMPTY_ITERABLE

Constructor Detail

LazyCharIterateback to summary
private LazyCharIterate()

Method Detail

adaptback to summary
public static LazyCharIterable adapt(CharIterable iterable)

Creates a deferred char iterable for the specified char iterable.

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

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

collectIfback to summary
public static <V> LazyIterable<V> collectIf(CharIterable iterable, CharPredicate predicate, CharToObjectFunction<? extends V> function)

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

emptyback to summary
public static LazyCharIterable empty()
flatCollectback to summary
public static <V> LazyIterable<V> flatCollect(CharIterable iterable, CharToObjectFunction<? extends Iterable<V>> function)

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

Since
9.0
selectback to summary
public static LazyCharIterable select(CharIterable iterable, CharPredicate predicate)

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

tapback to summary
public static LazyCharIterable tap(CharIterable iterable, CharProcedure procedure)

Creates a deferred tap iterable for the specified iterable.

Since
9.0