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

public final Class LazyByteIterate

extends Object
Class Inheritance
Imports
org.eclipse.collections.api.ByteIterable, .LazyByteIterable, .LazyIterable, org.eclipse.collections.api.block.function.primitive.ByteToObjectFunction, org.eclipse.collections.api.block.predicate.primitive.BytePredicate, org.eclipse.collections.api.block.procedure.primitive.ByteProcedure, org.eclipse.collections.impl.factory.primitive.ByteLists, org.eclipse.collections.impl.lazy.primitive.CollectByteToObjectIterable, .FlatCollectByteToObjectIterable, .LazyByteIterableAdapter, .SelectByteIterable, .TapByteIterable

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

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public static LazyByteIterable
adapt(ByteIterable iterable)

Creates a deferred byte iterable for the specified byte iterable.

public static <V> LazyIterable<V>
collect(ByteIterable iterable, ByteToObjectFunction<? extends V> function)

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

public static <V> LazyIterable<V>
collectIf(ByteIterable iterable, BytePredicate predicate, ByteToObjectFunction<? extends V> function)

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

public static LazyByteIterable
public static <V> LazyIterable<V>
flatCollect(ByteIterable iterable, ByteToObjectFunction<? extends Iterable<V>> function)

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

public static LazyByteIterable
select(ByteIterable iterable, BytePredicate predicate)

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

public static LazyByteIterable
tap(ByteIterable iterable, ByteProcedure 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 LazyByteIterable EMPTY_ITERABLE

Constructor Detail

LazyByteIterateback to summary
private LazyByteIterate()

Method Detail

adaptback to summary
public static LazyByteIterable adapt(ByteIterable iterable)

Creates a deferred byte iterable for the specified byte iterable.

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

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

collectIfback to summary
public static <V> LazyIterable<V> collectIf(ByteIterable iterable, BytePredicate predicate, ByteToObjectFunction<? extends V> function)

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

emptyback to summary
public static LazyByteIterable empty()
flatCollectback to summary
public static <V> LazyIterable<V> flatCollect(ByteIterable iterable, ByteToObjectFunction<? extends Iterable<V>> function)

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

Since
9.0
selectback to summary
public static LazyByteIterable select(ByteIterable iterable, BytePredicate predicate)

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

tapback to summary
public static LazyByteIterable tap(ByteIterable iterable, ByteProcedure procedure)

Creates a deferred tap iterable for the specified iterable.

Since
9.0