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

public final Class LazyLongIterate

extends Object
Class Inheritance
Imports
org.eclipse.collections.api.LongIterable, .LazyLongIterable, .LazyIterable, org.eclipse.collections.api.block.function.primitive.LongToObjectFunction, org.eclipse.collections.api.block.predicate.primitive.LongPredicate, org.eclipse.collections.api.block.procedure.primitive.LongProcedure, org.eclipse.collections.impl.factory.primitive.LongLists, org.eclipse.collections.impl.lazy.primitive.CollectLongToObjectIterable, .FlatCollectLongToObjectIterable, .LazyLongIterableAdapter, .SelectLongIterable, .TapLongIterable

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

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public static LazyLongIterable
adapt(LongIterable iterable)

Creates a deferred long iterable for the specified long iterable.

public static <V> LazyIterable<V>
collect(LongIterable iterable, LongToObjectFunction<? extends V> function)

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

public static <V> LazyIterable<V>
collectIf(LongIterable iterable, LongPredicate predicate, LongToObjectFunction<? extends V> function)

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

public static LazyLongIterable
public static <V> LazyIterable<V>
flatCollect(LongIterable iterable, LongToObjectFunction<? extends Iterable<V>> function)

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

public static LazyLongIterable
select(LongIterable iterable, LongPredicate predicate)

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

public static LazyLongIterable
tap(LongIterable iterable, LongProcedure 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 LazyLongIterable EMPTY_ITERABLE

Constructor Detail

LazyLongIterateback to summary
private LazyLongIterate()

Method Detail

adaptback to summary
public static LazyLongIterable adapt(LongIterable iterable)

Creates a deferred long iterable for the specified long iterable.

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

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

collectIfback to summary
public static <V> LazyIterable<V> collectIf(LongIterable iterable, LongPredicate predicate, LongToObjectFunction<? extends V> function)

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

emptyback to summary
public static LazyLongIterable empty()
flatCollectback to summary
public static <V> LazyIterable<V> flatCollect(LongIterable iterable, LongToObjectFunction<? extends Iterable<V>> function)

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

Since
9.0
selectback to summary
public static LazyLongIterable select(LongIterable iterable, LongPredicate predicate)

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

tapback to summary
public static LazyLongIterable tap(LongIterable iterable, LongProcedure procedure)

Creates a deferred tap iterable for the specified iterable.

Since
9.0