Top Description Constructors Methods
org.eclipse.collections.impl.lazy

public abstract Class AbstractLazyIterable<T>

extends AbstractRichIterable<T>
implements LazyIterable<T>
Class Inheritance
All Implemented Interfaces
org.eclipse.collections.api.LazyIterable, org.eclipse.collections.api.RichIterable, org.eclipse.collections.api.InternalIterable, java.lang.Iterable
Known Direct Subclasses
org.eclipse.collections.impl.lazy.ChunkIterable, org.eclipse.collections.impl.lazy.CollectIterable, org.eclipse.collections.impl.lazy.CompositeIterable, org.eclipse.collections.impl.lazy.DistinctIterable, org.eclipse.collections.impl.lazy.DropIterable, org.eclipse.collections.impl.lazy.DropWhileIterable, org.eclipse.collections.impl.lazy.FlatCollectIterable, org.eclipse.collections.impl.lazy.LazyIterableAdapter, org.eclipse.collections.impl.lazy.RejectIterable, org.eclipse.collections.impl.lazy.ReverseIterable, org.eclipse.collections.impl.lazy.SelectInstancesOfIterable, org.eclipse.collections.impl.lazy.SelectIterable, org.eclipse.collections.impl.lazy.TakeIterable, org.eclipse.collections.impl.lazy.TakeWhileIterable, org.eclipse.collections.impl.lazy.TapIterable, org.eclipse.collections.impl.lazy.ZipIterable, org.eclipse.collections.impl.lazy.ZipWithIndexIterable, org.eclipse.collections.impl.lazy.parallel.list.ListIterableParallelIterable.ListIterableParallelBatchLazyIterable, org.eclipse.collections.impl.lazy.primitive.ChunkBooleanIterable, org.eclipse.collections.impl.lazy.primitive.ChunkByteIterable, org.eclipse.collections.impl.lazy.primitive.ChunkCharIterable, org.eclipse.collections.impl.lazy.primitive.ChunkDoubleIterable, org.eclipse.collections.impl.lazy.primitive.ChunkFloatIterable, org.eclipse.collections.impl.lazy.primitive.ChunkIntIterable, org.eclipse.collections.impl.lazy.primitive.ChunkLongIterable, org.eclipse.collections.impl.lazy.primitive.ChunkShortIterable, org.eclipse.collections.impl.lazy.primitive.CollectBooleanToObjectIterable, org.eclipse.collections.impl.lazy.primitive.CollectFloatToObjectIterable, org.eclipse.collections.impl.lazy.primitive.FlatCollectCharToObjectIterable, org.eclipse.collections.impl.lazy.primitive.CollectIntToObjectIterable, org.eclipse.collections.impl.lazy.primitive.CollectDoubleToObjectIterable, org.eclipse.collections.impl.lazy.primitive.CollectLongToObjectIterable, org.eclipse.collections.impl.lazy.primitive.CollectShortToObjectIterable, org.eclipse.collections.impl.lazy.primitive.FlatCollectBooleanToObjectIterable, org.eclipse.collections.impl.lazy.primitive.FlatCollectByteToObjectIterable, org.eclipse.collections.impl.lazy.primitive.CollectByteToObjectIterable, org.eclipse.collections.impl.lazy.primitive.CollectCharToObjectIterable, org.eclipse.collections.impl.lazy.primitive.FlatCollectDoubleToObjectIterable, org.eclipse.collections.impl.lazy.primitive.FlatCollectFloatToObjectIterable, org.eclipse.collections.impl.lazy.primitive.FlatCollectIntToObjectIterable, org.eclipse.collections.impl.lazy.primitive.FlatCollectLongToObjectIterable, org.eclipse.collections.impl.lazy.primitive.FlatCollectShortToObjectIterable, org.eclipse.collections.impl.list.Interval, org.eclipse.collections.impl.map.mutable.primitive.ByteBooleanHashMap.KeyValuesView, org.eclipse.collections.impl.map.mutable.primitive.ByteByteHashMap.KeyValuesView, org.eclipse.collections.impl.map.mutable.primitive.ByteCharHashMap.KeyValuesView, org.eclipse.collections.impl.map.mutable.primitive.ByteDoubleHashMap.KeyValuesView, org.eclipse.collections.impl.map.mutable.primitive.ByteFloatHashMap.KeyValuesView, org.eclipse.collections.impl.map.mutable.primitive.ByteIntHashMap.KeyValuesView, org.eclipse.collections.impl.map.mutable.primitive.ByteLongHashMap.KeyValuesView, org.eclipse.collections.impl.map.mutable.primitive.IntBooleanHashMap.KeyValuesView, org.eclipse.collections.impl.map.mutable.primitive.IntByteHashMap.KeyValuesView, org.eclipse.collections.impl.map.mutable.primitive.IntCharHashMap.KeyValuesView, org.eclipse.collections.impl.map.mutable.primitive.IntDoubleHashMap.KeyValuesView, org.eclipse.collections.impl.map.mutable.primitive.IntFloatHashMap.KeyValuesView, org.eclipse.collections.impl.map.mutable.primitive.IntIntHashMap.KeyValuesView, org.eclipse.collections.impl.map.mutable.primitive.IntLongHashMap.KeyValuesView, org.eclipse.collections.impl.map.mutable.primitive.ByteObjectHashMap.KeyValuesView, org.eclipse.collections.impl.map.mutable.primitive.FloatDoubleHashMap.KeyValuesView, org.eclipse.collections.impl.map.mutable.primitive.IntObjectHashMap.KeyValuesView, org.eclipse.collections.impl.map.mutable.primitive.LongLongHashMap.KeyValuesView, org.eclipse.collections.impl.map.mutable.primitive.ObjectBooleanHashMap.KeysView, org.eclipse.collections.impl.map.mutable.primitive.ObjectBooleanHashMap.KeyValuesView, org.eclipse.collections.impl.map.mutable.primitive.ObjectBooleanHashMapWithHashingStrategy.KeysView, org.eclipse.collections.impl.map.mutable.primitive.ObjectBooleanHashMapWithHashingStrategy.KeyValuesView, org.eclipse.collections.impl.map.mutable.primitive.ObjectByteHashMap.KeysView, org.eclipse.collections.impl.map.mutable.primitive.ObjectByteHashMap.KeyValuesView, org.eclipse.collections.impl.map.mutable.primitive.ObjectByteHashMapWithHashingStrategy.KeysView, org.eclipse.collections.impl.map.mutable.primitive.ObjectByteHashMapWithHashingStrategy.KeyValuesView, org.eclipse.collections.impl.map.mutable.primitive.ObjectCharHashMap.KeysView, org.eclipse.collections.impl.map.mutable.primitive.ObjectCharHashMap.KeyValuesView, org.eclipse.collections.impl.map.mutable.primitive.ObjectCharHashMapWithHashingStrategy.KeysView, org.eclipse.collections.impl.map.mutable.primitive.ObjectCharHashMapWithHashingStrategy.KeyValuesView, org.eclipse.collections.impl.map.mutable.primitive.ObjectDoubleHashMap.KeysView, org.eclipse.collections.impl.map.mutable.primitive.ObjectDoubleHashMap.KeyValuesView, org.eclipse.collections.impl.map.mutable.primitive.ObjectDoubleHashMapWithHashingStrategy.KeysView, org.eclipse.collections.impl.map.mutable.primitive.ObjectDoubleHashMapWithHashingStrategy.KeyValuesView, org.eclipse.collections.impl.map.mutable.primitive.ObjectFloatHashMap.KeysView, org.eclipse.collections.impl.map.mutable.primitive.ObjectFloatHashMap.KeyValuesView, org.eclipse.collections.impl.map.mutable.primitive.ObjectFloatHashMapWithHashingStrategy.KeysView, org.eclipse.collections.impl.map.mutable.primitive.ObjectFloatHashMapWithHashingStrategy.KeyValuesView, org.eclipse.collections.impl.map.mutable.primitive.ObjectIntHashMap.KeysView, org.eclipse.collections.impl.map.mutable.primitive.ObjectIntHashMap.KeyValuesView, org.eclipse.collections.impl.map.mutable.primitive.ObjectIntHashMapWithHashingStrategy.KeysView, org.eclipse.collections.impl.map.mutable.primitive.ObjectIntHashMapWithHashingStrategy.KeyValuesView, org.eclipse.collections.impl.map.mutable.primitive.ObjectLongHashMap.KeysView, org.eclipse.collections.impl.map.mutable.primitive.ObjectLongHashMap.KeyValuesView, org.eclipse.collections.impl.map.mutable.primitive.ObjectLongHashMapWithHashingStrategy.KeysView, org.eclipse.collections.impl.map.mutable.primitive.ObjectLongHashMapWithHashingStrategy.KeyValuesView, org.eclipse.collections.impl.map.mutable.primitive.ObjectShortHashMap.KeysView, org.eclipse.collections.impl.map.mutable.primitive.ObjectShortHashMap.KeyValuesView, org.eclipse.collections.impl.map.mutable.primitive.ObjectShortHashMapWithHashingStrategy.KeysView, org.eclipse.collections.impl.map.mutable.primitive.ObjectShortHashMapWithHashingStrategy.KeyValuesView, org.eclipse.collections.impl.map.mutable.primitive.ShortBooleanHashMap.KeyValuesView, org.eclipse.collections.impl.map.mutable.primitive.ShortByteHashMap.KeyValuesView, org.eclipse.collections.impl.map.mutable.primitive.ShortCharHashMap.KeyValuesView, org.eclipse.collections.impl.map.mutable.primitive.ByteShortHashMap.KeyValuesView, org.eclipse.collections.impl.map.mutable.primitive.CharBooleanHashMap.KeyValuesView, org.eclipse.collections.impl.map.mutable.primitive.CharByteHashMap.KeyValuesView, org.eclipse.collections.impl.map.mutable.primitive.CharCharHashMap.KeyValuesView, org.eclipse.collections.impl.map.mutable.primitive.CharDoubleHashMap.KeyValuesView, org.eclipse.collections.impl.map.mutable.primitive.CharFloatHashMap.KeyValuesView, org.eclipse.collections.impl.map.mutable.primitive.CharIntHashMap.KeyValuesView, org.eclipse.collections.impl.map.mutable.primitive.CharLongHashMap.KeyValuesView, org.eclipse.collections.impl.map.mutable.primitive.CharObjectHashMap.KeyValuesView, org.eclipse.collections.impl.map.mutable.primitive.CharShortHashMap.KeyValuesView, org.eclipse.collections.impl.map.mutable.primitive.DoubleBooleanHashMap.KeyValuesView, org.eclipse.collections.impl.map.mutable.primitive.DoubleByteHashMap.KeyValuesView, org.eclipse.collections.impl.map.mutable.primitive.DoubleCharHashMap.KeyValuesView, org.eclipse.collections.impl.map.mutable.primitive.DoubleDoubleHashMap.KeyValuesView, org.eclipse.collections.impl.map.mutable.primitive.DoubleFloatHashMap.KeyValuesView, org.eclipse.collections.impl.map.mutable.primitive.IntShortHashMap.KeyValuesView, org.eclipse.collections.impl.map.mutable.primitive.LongBooleanHashMap.KeyValuesView, org.eclipse.collections.impl.map.mutable.primitive.LongByteHashMap.KeyValuesView, org.eclipse.collections.impl.map.mutable.primitive.LongCharHashMap.KeyValuesView, org.eclipse.collections.impl.map.mutable.primitive.LongDoubleHashMap.KeyValuesView, org.eclipse.collections.impl.map.mutable.primitive.LongFloatHashMap.KeyValuesView, org.eclipse.collections.impl.map.mutable.primitive.LongIntHashMap.KeyValuesView, org.eclipse.collections.impl.map.mutable.primitive.FloatFloatHashMap.KeyValuesView, org.eclipse.collections.impl.map.mutable.primitive.FloatIntHashMap.KeyValuesView, org.eclipse.collections.impl.map.mutable.primitive.FloatLongHashMap.KeyValuesView, org.eclipse.collections.impl.map.mutable.primitive.FloatObjectHashMap.KeyValuesView, org.eclipse.collections.impl.map.mutable.primitive.FloatShortHashMap.KeyValuesView, org.eclipse.collections.impl.map.mutable.primitive.LongObjectHashMap.KeyValuesView, org.eclipse.collections.impl.map.mutable.primitive.LongShortHashMap.KeyValuesView, org.eclipse.collections.impl.map.mutable.primitive.DoubleIntHashMap.KeyValuesView, org.eclipse.collections.impl.map.mutable.primitive.DoubleLongHashMap.KeyValuesView, org.eclipse.collections.impl.map.mutable.primitive.DoubleObjectHashMap.KeyValuesView, org.eclipse.collections.impl.map.mutable.primitive.DoubleShortHashMap.KeyValuesView, org.eclipse.collections.impl.map.mutable.primitive.FloatBooleanHashMap.KeyValuesView, org.eclipse.collections.impl.map.mutable.primitive.FloatByteHashMap.KeyValuesView, org.eclipse.collections.impl.map.mutable.primitive.FloatCharHashMap.KeyValuesView, org.eclipse.collections.impl.map.mutable.primitive.ShortDoubleHashMap.KeyValuesView, org.eclipse.collections.impl.map.mutable.primitive.ShortFloatHashMap.KeyValuesView, org.eclipse.collections.impl.map.mutable.primitive.ShortIntHashMap.KeyValuesView, org.eclipse.collections.impl.map.mutable.primitive.ShortLongHashMap.KeyValuesView, org.eclipse.collections.impl.map.mutable.primitive.ShortObjectHashMap.KeyValuesView, org.eclipse.collections.impl.map.mutable.primitive.ShortShortHashMap.KeyValuesView, org.eclipse.collections.impl.set.mutable.UnifiedSet.UnifiedSetParallelUnsortedIterable.UnifiedSetParallelSplitLazyIterable, org.eclipse.collections.impl.set.sorted.immutable.ImmutableTreeSet.SortedSetIterableParallelIterable.SortedSetIterableParallelBatchLazyIterable, org.eclipse.collections.impl.set.strategy.mutable.UnifiedSetWithHashingStrategy.UnifiedSetParallelUnsortedIterable.UnifiedSetParallelSplitLazyIterable
Imports
java.util.Collection, .Comparator, .Iterator, .Optional, org.eclipse.collections.api.LazyBooleanIterable, .LazyByteIterable, .LazyCharIterable, .LazyDoubleIterable, .LazyFloatIterable, .LazyIntIterable, .LazyIterable, .LazyLongIterable, .LazyShortIterable, .RichIterable, org.eclipse.collections.api.block.function.Function, .Function2, org.eclipse.collections.api.block.function.primitive.BooleanFunction, .ByteFunction, .CharFunction, .DoubleFunction, .FloatFunction, .IntFunction, .LongFunction, .ShortFunction, org.eclipse.collections.api.block.predicate.Predicate, .Predicate2, org.eclipse.collections.api.block.procedure.Procedure, org.eclipse.collections.api.factory.primitive.ObjectDoubleMaps, .ObjectLongMaps, org.eclipse.collections.api.map.MapIterable, org.eclipse.collections.api.map.primitive.MutableObjectDoubleMap, .MutableObjectLongMap, .ObjectDoubleMap, .ObjectLongMap, org.eclipse.collections.api.multimap.Multimap, org.eclipse.collections.api.partition.list.PartitionMutableList, org.eclipse.collections.api.stack.MutableStack, org.eclipse.collections.api.tuple.Pair, org.eclipse.collections.impl.AbstractRichIterable, org.eclipse.collections.impl.block.factory.Functions, .Predicates, .PrimitiveFunctions, .Procedures2, org.eclipse.collections.impl.block.procedure.MaxByProcedure, .MaxComparatorProcedure, .MaxProcedure, .MinByProcedure, .MinComparatorProcedure, .MinProcedure, .PartitionProcedure, org.eclipse.collections.impl.lazy.primitive.CollectBooleanIterable, .CollectByteIterable, .CollectCharIterable, .CollectDoubleIterable, .CollectFloatIterable, .CollectIntIterable, .CollectLongIterable, .CollectShortIterable, org.eclipse.collections.impl.map.mutable.UnifiedMap, org.eclipse.collections.impl.multimap.list.FastListMultimap, org.eclipse.collections.impl.partition.list.PartitionFastList, org.eclipse.collections.impl.stack.mutable.ArrayStack, org.eclipse.collections.impl.utility.LazyIterate

AbstractLazyIterable provides a base from which deferred iterables such as SelectIterable, RejectIterable and CollectIterable can be derived.

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public LazyIterable<T>
asLazy()

Overrides org.eclipse.collections.impl.AbstractRichIterable.asLazy.

Implements org.eclipse.collections.api.RichIterable.asLazy.

Returns a lazy (deferred) iterable, most likely implemented by calling LazyIterate.adapt(this).

public LazyIterable<RichIterable<T>>
public <V> LazyIterable<V>
collect(Function<? super T, ? extends V> function)

Implements org.eclipse.collections.api.LazyIterable.collect, org.eclipse.collections.api.RichIterable.collect.

Creates a deferred iterable for collecting elements from the current iterable.

public LazyBooleanIterable
collectBoolean(BooleanFunction<? super T> booleanFunction)

Implements org.eclipse.collections.api.LazyIterable.collectBoolean, org.eclipse.collections.api.RichIterable.collectBoolean.

Returns a lazy BooleanIterable which will transform the underlying iterable data to boolean values based on the booleanFunction.

public LazyByteIterable
collectByte(ByteFunction<? super T> byteFunction)

Implements org.eclipse.collections.api.LazyIterable.collectByte, org.eclipse.collections.api.RichIterable.collectByte.

Returns a lazy ByteIterable which will transform the underlying iterable data to byte values based on the byteFunction.

public LazyCharIterable
collectChar(CharFunction<? super T> charFunction)

Implements org.eclipse.collections.api.LazyIterable.collectChar, org.eclipse.collections.api.RichIterable.collectChar.

Returns a lazy CharIterable which will transform the underlying iterable data to char values based on the charFunction.

public LazyDoubleIterable
collectDouble(DoubleFunction<? super T> doubleFunction)

Implements org.eclipse.collections.api.LazyIterable.collectDouble, org.eclipse.collections.api.RichIterable.collectDouble.

Returns a lazy DoubleIterable which will transform the underlying iterable data to double values based on the doubleFunction.

public LazyFloatIterable
collectFloat(FloatFunction<? super T> floatFunction)

Implements org.eclipse.collections.api.LazyIterable.collectFloat, org.eclipse.collections.api.RichIterable.collectFloat.

Returns a lazy FloatIterable which will transform the underlying iterable data to float values based on the floatFunction.

public <V> LazyIterable<V>
collectIf(Predicate<? super T> predicate, Function<? super T, ? extends V> function)

Implements org.eclipse.collections.api.LazyIterable.collectIf, org.eclipse.collections.api.RichIterable.collectIf.

Creates a deferred iterable for selecting and collecting elements from the current iterable.

public LazyIntIterable
collectInt(IntFunction<? super T> intFunction)

Implements org.eclipse.collections.api.LazyIterable.collectInt, org.eclipse.collections.api.RichIterable.collectInt.

Returns a lazy IntIterable which will transform the underlying iterable data to int values based on the intFunction.

public LazyLongIterable
collectLong(LongFunction<? super T> longFunction)

Implements org.eclipse.collections.api.LazyIterable.collectLong, org.eclipse.collections.api.RichIterable.collectLong.

Returns a lazy LongIterable which will transform the underlying iterable data to long values based on the longFunction.

public LazyShortIterable
collectShort(ShortFunction<? super T> shortFunction)

Implements org.eclipse.collections.api.LazyIterable.collectShort, org.eclipse.collections.api.RichIterable.collectShort.

Returns a lazy ShortIterable which will transform the underlying iterable data to short values based on the shortFunction.

public <P, V> LazyIterable<V>
collectWith(Function2<? super T, ? super P, ? extends V> function, P parameter)

Implements org.eclipse.collections.api.LazyIterable.collectWith, org.eclipse.collections.api.RichIterable.collectWith.

Same as collect(Function) with a Function2 and specified parameter which is passed to the block.

public LazyIterable<T>
concatenate(Iterable<T> iterable)

Implements org.eclipse.collections.api.LazyIterable.concatenate.

Creates a deferred iterable that will join this iterable with the specified iterable.

public LazyIterable<T>
distinct()

Implements org.eclipse.collections.api.LazyIterable.distinct.

Creates a deferred distinct iterable to get distinct elements from the current iterable.

public LazyIterable<T>
drop(int count)

Implements org.eclipse.collections.api.LazyIterable.drop.

Creates a deferred drop iterable for the current iterable using the specified count as the limit.

public LazyIterable<T>
public <V> LazyIterable<V>
flatCollect(Function<? super T, ? extends Iterable<V>> function)

Implements org.eclipse.collections.api.LazyIterable.flatCollect, org.eclipse.collections.api.RichIterable.flatCollect.

Creates a deferred flattening iterable for the current iterable.

public T
public T
getLast()

Implements org.eclipse.collections.api.RichIterable.getLast.

Returns the last element of an iterable.

public T
getOnly()

Overrides default org.eclipse.collections.api.RichIterable.getOnly.

Returns the element if the iterable has exactly one element.

public <V> Multimap<V, T>
groupBy(Function<? super T, ? extends V> function)

Implements org.eclipse.collections.api.RichIterable.groupBy.

For each element of the iterable, the function is evaluated and the results of these evaluations are collected into a new multimap, where the transformed value is the key and the original values are added to the same (or similar) species of collection as the source iterable.

public <V> Multimap<V, T>
groupByEach(Function<? super T, ? extends Iterable<V>> function)

Implements org.eclipse.collections.api.RichIterable.groupByEach.

Similar to groupBy(Function), except the result of evaluating function will return a collection of keys for each value.

public <V> MapIterable<V, T>
groupByUniqueKey(Function<? super T, ? extends V> function)

Implements org.eclipse.collections.api.RichIterable.groupByUniqueKey.

For each element of the iterable, the function is evaluated, and the results of these evaluations are collected into a new map, where the transformed value is the key.

public <R extends Collection<T>> R
into(R target)

Overrides org.eclipse.collections.impl.AbstractRichIterable.into.

Implements org.eclipse.collections.api.LazyIterable.into, org.eclipse.collections.api.RichIterable.into.

Iterates over this iterable adding all elements into the target collection.

public boolean
public <V extends Comparable<? super V>> Optional<T>
maxByOptional(Function<? super T, ? extends V> function)

Overrides default org.eclipse.collections.api.RichIterable.maxByOptional.

Returns the maximum elements out of this container based on the natural order of the attribute returned by Function as an Optional.

public Optional<T>
maxOptional(Comparator<? super T> comparator)

Overrides default org.eclipse.collections.api.RichIterable.maxOptional.

Returns the maximum element out of this container based on the comparator as an Optional.

public Optional<T>
maxOptional()

Overrides default org.eclipse.collections.api.RichIterable.maxOptional.

Returns the maximum element out of this container based on the natural order as an Optional.

public <V extends Comparable<? super V>> Optional<T>
minByOptional(Function<? super T, ? extends V> function)

Overrides default org.eclipse.collections.api.RichIterable.minByOptional.

Returns the minimum elements out of this container based on the natural order of the attribute returned by Function as an Optional.

public Optional<T>
minOptional(Comparator<? super T> comparator)

Overrides default org.eclipse.collections.api.RichIterable.minOptional.

Returns the minimum element out of this container based on the comparator as an Optional.

public Optional<T>
minOptional()

Overrides default org.eclipse.collections.api.RichIterable.minOptional.

Returns the minimum element out of this container based on the natural order as an Optional.

public PartitionMutableList<T>
partition(Predicate<? super T> predicate)

Implements org.eclipse.collections.api.RichIterable.partition.

Filters a collection into a PartitionedIterable based on the evaluation of the predicate.

public <P> PartitionMutableList<T>
partitionWith(Predicate2<? super T, ? super P> predicate, P parameter)

Implements org.eclipse.collections.api.RichIterable.partitionWith.

Filters a collection into a PartitionIterable based on the evaluation of the predicate.

public LazyIterable<T>
reject(Predicate<? super T> predicate)

Implements org.eclipse.collections.api.LazyIterable.reject, org.eclipse.collections.api.RichIterable.reject.

Creates a deferred iterable for rejecting elements from the current iterable.

public <P> LazyIterable<T>
rejectWith(Predicate2<? super T, ? super P> predicate, P parameter)

Implements org.eclipse.collections.api.LazyIterable.rejectWith, org.eclipse.collections.api.RichIterable.rejectWith.

Similar to reject(Predicate), except with an evaluation parameter for the second generic argument in Predicate2.

public LazyIterable<T>
select(Predicate<? super T> predicate)

Implements org.eclipse.collections.api.LazyIterable.select, org.eclipse.collections.api.RichIterable.select.

Creates a deferred iterable for selecting elements from the current iterable.

public <S> LazyIterable<S>
selectInstancesOf(Class<S> clazz)

Implements org.eclipse.collections.api.LazyIterable.selectInstancesOf, org.eclipse.collections.api.RichIterable.selectInstancesOf.

Returns all elements of the source collection that are instances of the Class clazz.

public <P> LazyIterable<T>
selectWith(Predicate2<? super T, ? super P> predicate, P parameter)

Implements org.eclipse.collections.api.LazyIterable.selectWith, org.eclipse.collections.api.RichIterable.selectWith.

Similar to select(Predicate), except with an evaluation parameter for the second generic argument in Predicate2.

public int
size()

Implements org.eclipse.collections.api.RichIterable.size.

Returns the number of items in this iterable.

public <V> ObjectDoubleMap<V>
sumByDouble(Function<? super T, ? extends V> groupBy, DoubleFunction<? super T> function)

Implements org.eclipse.collections.api.RichIterable.sumByDouble.

Groups and sums the values using the two specified functions.

public <V> ObjectDoubleMap<V>
sumByFloat(Function<? super T, ? extends V> groupBy, FloatFunction<? super T> function)

Implements org.eclipse.collections.api.RichIterable.sumByFloat.

Groups and sums the values using the two specified functions.

public <V> ObjectLongMap<V>
sumByInt(Function<? super T, ? extends V> groupBy, IntFunction<? super T> function)

Implements org.eclipse.collections.api.RichIterable.sumByInt.

Groups and sums the values using the two specified functions.

public <V> ObjectLongMap<V>
sumByLong(Function<? super T, ? extends V> groupBy, LongFunction<? super T> function)

Implements org.eclipse.collections.api.RichIterable.sumByLong.

Groups and sums the values using the two specified functions.

public LazyIterable<T>
take(int count)

Implements org.eclipse.collections.api.LazyIterable.take.

Creates a deferred take iterable for the current iterable using the specified count as the limit.

public LazyIterable<T>
public LazyIterable<T>
tap(Procedure<? super T> procedure)

Implements org.eclipse.collections.api.LazyIterable.tap, org.eclipse.collections.api.RichIterable.tap.

Creates a deferred tap iterable.

public MutableStack<T>
public <S> LazyIterable<Pair<T, S>>
public LazyIterable<Pair<T, Integer>>
Inherited from org.eclipse.collections.impl.AbstractRichIterable:
allSatisfyallSatisfyWithanySatisfyanySatisfyWithappendStringappendStringcollectcollectIfcollectWithcontainscontainsAllcontainsAllArgumentscontainsAllIterablecountcountByEachcountWithdetectdetectOptionaldetectWithdetectWithIfNonedetectWithOptionalflatCollectforEachforEachWithforEachWithIndexgroupBygroupByEachgroupByUniqueKeyinjectIntoinjectIntoinjectIntoinjectIntoinjectIntomaxmaxmaxByminminminBynoneSatisfynoneSatisfyWithrejectrejectWithselectselectWithsumOfDoublesumOfFloatsumOfIntsumOfLongtoBagtoBiMaptoListtoMaptoSettoSortedBagtoSortedBagtoSortedBagBytoSortedListBytoSortedMaptoSortedMaptoSortedMapBytoSortedSettoSortedSettoSortedSetBytoStringzipzipWithIndex