Class LazyCharIterate
- java.lang.Object
-
- org.eclipse.collections.impl.utility.primitive.LazyCharIterate
-
public final class LazyCharIterate extends java.lang.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
-
-
Field Summary
Fields Modifier and Type Field Description private static LazyCharIterable
EMPTY_ITERABLE
-
Constructor Summary
Constructors Modifier Constructor Description private
LazyCharIterate()
-
Method Summary
All Methods Static Methods Concrete Methods 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 java.lang.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.
-
-
-
Field Detail
-
EMPTY_ITERABLE
private static final LazyCharIterable EMPTY_ITERABLE
-
-
Method Detail
-
adapt
public static LazyCharIterable adapt(CharIterable iterable)
Creates a deferred char iterable for the specified char iterable.
-
select
public static LazyCharIterable select(CharIterable iterable, CharPredicate predicate)
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 java.lang.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
public static LazyCharIterable empty()
-
tap
public static LazyCharIterable tap(CharIterable iterable, CharProcedure procedure)
Creates a deferred tap iterable for the specified iterable.- Since:
- 9.0
-
-