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

public final Class LazyShortIterate

extends Object
Class Inheritance
Imports
org.eclipse.collections.api.ShortIterable, .LazyShortIterable, .LazyIterable, org.eclipse.collections.api.block.function.primitive.ShortToObjectFunction, org.eclipse.collections.api.block.predicate.primitive.ShortPredicate, org.eclipse.collections.api.block.procedure.primitive.ShortProcedure, org.eclipse.collections.impl.factory.primitive.ShortLists, org.eclipse.collections.impl.lazy.primitive.CollectShortToObjectIterable, .FlatCollectShortToObjectIterable, .LazyShortIterableAdapter, .SelectShortIterable, .TapShortIterable

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

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public static LazyShortIterable
adapt(ShortIterable iterable)

Creates a deferred short iterable for the specified short iterable.

public static <V> LazyIterable<V>
collect(ShortIterable iterable, ShortToObjectFunction<? extends V> function)

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

public static <V> LazyIterable<V>
collectIf(ShortIterable iterable, ShortPredicate predicate, ShortToObjectFunction<? extends V> function)

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

public static LazyShortIterable
public static <V> LazyIterable<V>
flatCollect(ShortIterable iterable, ShortToObjectFunction<? extends Iterable<V>> function)

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

public static LazyShortIterable
select(ShortIterable iterable, ShortPredicate predicate)

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

public static LazyShortIterable
tap(ShortIterable iterable, ShortProcedure 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 LazyShortIterable EMPTY_ITERABLE

Constructor Detail

LazyShortIterateback to summary
private LazyShortIterate()

Method Detail

adaptback to summary
public static LazyShortIterable adapt(ShortIterable iterable)

Creates a deferred short iterable for the specified short iterable.

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

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

collectIfback to summary
public static <V> LazyIterable<V> collectIf(ShortIterable iterable, ShortPredicate predicate, ShortToObjectFunction<? extends V> function)

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

emptyback to summary
public static LazyShortIterable empty()
flatCollectback to summary
public static <V> LazyIterable<V> flatCollect(ShortIterable iterable, ShortToObjectFunction<? extends Iterable<V>> function)

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

Since
9.0
selectback to summary
public static LazyShortIterable select(ShortIterable iterable, ShortPredicate predicate)

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

tapback to summary
public static LazyShortIterable tap(ShortIterable iterable, ShortProcedure procedure)

Creates a deferred tap iterable for the specified iterable.

Since
9.0