Class LazyCharIterate
java.lang.Object
org.eclipse.collections.impl.utility.primitive.LazyCharIterate
public final class LazyCharIterate extends Object
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
-
Method Summary
Modifier and Type Method Description static LazyCharIterable
adapt(CharIterable iterable)
Creates a deferred char iterable for the specified char iterable.static <V> LazyIterable<V>
collect(CharIterable iterable, CharToObjectFunction<? extends V> function)
Creates a deferred transforming char iterable for the specified char iterable.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.static LazyCharIterable
empty()
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.static LazyCharIterable
select(CharIterable iterable, CharPredicate predicate)
Creates a deferred filtering char iterable for the specified char iterable.static LazyCharIterable
tap(CharIterable iterable, CharProcedure procedure)
Creates a deferred tap iterable for the specified iterable.
-
Method Details
-
adapt
Creates a deferred char iterable for the specified char iterable. -
select
Creates a deferred filtering char iterable for the specified char iterable. -
collect
public static <V> LazyIterable<V> collect(CharIterable iterable, CharToObjectFunction<? extends V> function)Creates a deferred transforming char iterable for the specified char iterable. -
flatCollect
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
-
collectIf
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. -
empty
-
tap
Creates a deferred tap iterable for the specified iterable.- Since:
- 9.0
-