Top Description Fields Constructors Methods
org.eclipse.collections.impl.collector

public final Class Collectors2

extends Object
Class Inheritance
Imports
java.math.BigDecimal, .BigInteger, java.util.Collection, .Comparator, .Iterator, .StringJoiner, java.util.concurrent.atomic.AtomicInteger, java.util.function.BinaryOperator, .Supplier, java.util.stream.Collector, .Collectors, .Stream, org.eclipse.collections.api.RichIterable, org.eclipse.collections.api.bag.ImmutableBag, .MutableBag, org.eclipse.collections.api.bag.sorted.ImmutableSortedBag, .MutableSortedBag, org.eclipse.collections.api.bimap.ImmutableBiMap, .MutableBiMap, org.eclipse.collections.api.block.function.Function, .Function0, .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.collection.MutableCollection, org.eclipse.collections.api.collection.primitive.MutableBooleanCollection, .MutableByteCollection, .MutableCharCollection, .MutableDoubleCollection, .MutableFloatCollection, .MutableIntCollection, .MutableLongCollection, .MutableShortCollection, org.eclipse.collections.api.factory.Bags, .BiMaps, .Lists, .Maps, .Sets, .SortedBags, .SortedMaps, .SortedSets, .Stacks, org.eclipse.collections.api.factory.primitive.ObjectDoubleMaps, .ObjectLongMaps, org.eclipse.collections.api.list.ImmutableList, .MutableList, org.eclipse.collections.api.map.ImmutableMap, .MutableMap, .MutableMapIterable, org.eclipse.collections.api.map.primitive.MutableObjectDoubleMap, .MutableObjectLongMap, org.eclipse.collections.api.map.sorted.ImmutableSortedMap, .MutableSortedMap, org.eclipse.collections.api.multimap.ImmutableMultimap, .MutableMultimap, org.eclipse.collections.api.multimap.bag.ImmutableBagMultimap, .MutableBagMultimap, org.eclipse.collections.api.multimap.list.ImmutableListMultimap, .MutableListMultimap, org.eclipse.collections.api.multimap.set.ImmutableSetMultimap, .MutableSetMultimap, org.eclipse.collections.api.ordered.OrderedIterable, org.eclipse.collections.api.partition.PartitionMutableCollection, org.eclipse.collections.api.set.ImmutableSet, .MutableSet, org.eclipse.collections.api.set.sorted.ImmutableSortedSet, .MutableSortedSet, org.eclipse.collections.api.stack.ImmutableStack, .MutableStack, org.eclipse.collections.api.tuple.Pair, org.eclipse.collections.api.tuple.primitive.ObjectIntPair, org.eclipse.collections.impl.block.factory.Comparators, .PrimitiveFunctions, org.eclipse.collections.impl.factory.Multimaps, org.eclipse.collections.impl.tuple.Tuples, org.eclipse.collections.impl.tuple.primitive.PrimitiveTuples, org.eclipse.collections.impl.utility.Iterate

A set of Collectors for Eclipse Collections types and algorithms.

Includes converter Collectors to{Immutable}{Sorted}{List/Set/Bag/Map/BiMap/Multimap}.
Includes Collectors for select, reject, partition.
Includes Collectors for collect, collect{Boolean/Byte/Char/Short/Int/Float/Long/Double}.
Includes Collectors for makeString, zip, chunk.
Includes Collectors for sumBy{Int/Float/Long/Double}.

Use these Collectors with @RichIterable#reduceInPlace(Collector) and @Stream#collect(Collector).

Since
8.0

Field Summary

Modifier and TypeField and Description
private static final Collector<?, ?, ?>
private static final Collector<?, ?, ?>
private static final Collector<?, ?, ?>
private static final Collector<?, ?, ?>
private static final Collector<?, ?, ?>
private static final Collector<?, ?, ?>
private static final Collector<?, ?, ?>
private static final Collector<?, ?, String>
private static final Collector<?, ?, ?>
private static final Collector<?, ?, ?>
private static final Collector<?, ?, ?>
private static final Collector<?, ?, ?>
private static final Collector<?, ?, ?>
private static final Collector<?, ?, ?>
private static final Collector<?, ?, ?>
private static final Collector.Characteristics[]

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public static <T, K, R extends MutableMapIterable<K, T>> Collector<T, ?, R>
aggregateBy(Function<? super T, ? extends K> groupBy, Function0<? extends T> zeroValueFactory, Function2<? super T, ? super T, ? extends T> aggregator, Supplier<R> supplier)

Groups the elements using the groupBy function and all the elements that map to the same key are aggregated together using the aggregator function.

public static <T> Collector<T, ?, MutableList<MutableList<T>>>
chunk(int size)

Partitions elements in fixed size chunks.

public static <T, V, R extends Collection<V>> Collector<T, ?, R>
collect(Function<? super T, ? extends V> function, Supplier<R> supplier)

Returns a new collection with the results of applying the specified function on each element of the source collection.

public static <T, R extends MutableBooleanCollection> Collector<T, ?, R>
collectBoolean(BooleanFunction<? super T> function, Supplier<R> supplier)

Returns a new MutableBooleanCollection with the results of applying the specified BooleanFunction on each element of the source.

public static <T, R extends MutableByteCollection> Collector<T, ?, R>
collectByte(ByteFunction<? super T> function, Supplier<R> supplier)

Returns a new MutableByteCollection with the results of applying the specified ByteFunction on each element of the source.

public static <T, R extends MutableCharCollection> Collector<T, ?, R>
collectChar(CharFunction<? super T> function, Supplier<R> supplier)

Returns a new MutableCharCollection with the results of applying the specified CharFunction on each element of the source.

public static <T, R extends MutableDoubleCollection> Collector<T, ?, R>
collectDouble(DoubleFunction<? super T> function, Supplier<R> supplier)

Returns a new MutableDoubleCollection with the results of applying the specified DoubleFunction on each element of the source.

public static <T, R extends MutableFloatCollection> Collector<T, ?, R>
collectFloat(FloatFunction<? super T> function, Supplier<R> supplier)

Returns a new MutableFloatCollection with the results of applying the specified FloatFunction on each element of the source.

public static <T, R extends MutableIntCollection> Collector<T, ?, R>
collectInt(IntFunction<? super T> function, Supplier<R> supplier)

Returns a new MutableIntCollection with the results of applying the specified IntFunction on each element of the source.

public static <T, R extends MutableLongCollection> Collector<T, ?, R>
collectLong(LongFunction<? super T> function, Supplier<R> supplier)

Returns a new MutableLongCollection with the results of applying the specified LongFunction on each element of the source.

public static <T, R extends MutableShortCollection> Collector<T, ?, R>
collectShort(ShortFunction<? super T> function, Supplier<R> supplier)

Returns a new MutableShortCollection with the results of applying the specified ShortFunction on each element of the source.

public static <T, P, V, R extends Collection<V>> Collector<T, ?, R>
collectWith(Function2<? super T, ? super P, ? extends V> function, P parameter, Supplier<R> supplier)

Returns a new collection with the results of applying the specified function on each element of the source collection with the specified parameter.

public static <T, K> Collector<T, ?, MutableBag<K>>
countBy(Function<? super T, ? extends K> function)

Returns the counts of all the values returned by applying the specified function to each item of the Stream.

public static <T, K> Collector<T, ?, MutableBag<K>>
countByEach(Function<? super T, ? extends Iterable<K>> function)

Same as countBy(Function), except the result of applying the specified function will return a collection of keys for each value.

public static <T, V, R extends Collection<V>> Collector<T, ?, R>
flatCollect(Function<? super T, ? extends Iterable<V>> function, Supplier<R> supplier)

The method flatCollect is a special case of collect(Function, Supplier).

public static <T, K, R extends MutableMultimap<K, T>> Collector<T, ?, R>
groupBy(Function<? super T, ? extends K> groupBy, Supplier<R> supplier)

Returns the elements as an MutableMultimap grouping each element using the specified groupBy Function.

public static <T, K, V, R extends MutableMultimap<K, V>> Collector<T, ?, R>
groupByAndCollect(Function<? super T, ? extends K> groupBy, Function<? super T, ? extends V> valueFunction, Supplier<R> supplier)

Returns the elements as an MutableMultimap grouping each element using the specified groupBy Function and converting each element to the value returned by applying the specified Function valueFunction.

private static <T, K, V, A extends MutableMultimap<K, V>, R extends ImmutableMultimap<K, V>> Collector<T, ?, R>
groupByAndCollectImmutable(Function<? super T, ? extends K> groupBy, Function<? super T, ? extends V> valueFunction, Supplier<A> supplier, Function<A, R> finisher)

public static <T, K, R extends MutableMultimap<K, T>> Collector<T, ?, R>
groupByEach(Function<? super T, ? extends Iterable<K>> groupBy, Supplier<R> supplier)

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

private static <T, K, A extends MutableMultimap<K, T>, R extends ImmutableMultimap<K, T>> Collector<T, ?, R>
groupByImmutable(Function<? super T, ? extends K> groupBy, Supplier<A> supplier, Function<A, R> finisher)

public static <T, K, R extends MutableMapIterable<K, T>> Collector<T, ?, R>
groupByUniqueKey(Function<? super T, ? extends K> groupBy, Supplier<R> supplier)

Same as groupBy(Function, Supplier), except the result of evaluating groupBy function should return a unique key, or else an exception is thrown.

public static <T> Collector<T, ?, String>
makeString()

Returns a String composed of elements separated by ", ".

public static <T> Collector<T, ?, String>
makeString(CharSequence separator)

Returns a String composed of elements separated by the specified separator.

public static <T> Collector<T, ?, String>
makeString(CharSequence start, CharSequence separator, CharSequence end)

Returns a String composed of elements separated by the specified separator and beginning with start String and ending with end String.

private static <T, R extends Collection<T>> BinaryOperator<R>
private static <T, R extends PartitionMutableCollection<T>> BinaryOperator<R>
public static <T, R extends PartitionMutableCollection<T>> Collector<T, ?, R>
partition(Predicate<? super T> predicate, Supplier<R> supplier)

Returns all elements of the stream split into a PartitionMutableCollection after evaluating the predicate.

public static <T, P, R extends PartitionMutableCollection<T>> Collector<T, ?, R>
partitionWith(Predicate2<? super T, ? super P> predicate, P parameter, Supplier<R> supplier)

Returns all elements of the stream split into a PartitionMutableCollection after evaluating the predicate.

public static <T, R extends Collection<T>> Collector<T, ?, R>
reject(Predicate<? super T> predicate, Supplier<R> supplier)

Returns all elements of the stream that return false when evaluating the predicate.

public static <T, P, R extends Collection<T>> Collector<T, ?, R>
rejectWith(Predicate2<? super T, ? super P> predicate, P parameter, Supplier<R> supplier)

Returns all elements of the stream that return false when evaluating the predicate with the parameter.

public static <T, R extends Collection<T>> Collector<T, ?, R>
select(Predicate<? super T> predicate, Supplier<R> supplier)

Returns all elements of the stream that return true when evaluating the predicate.

public static <T, P, R extends Collection<T>> Collector<T, ?, R>
selectWith(Predicate2<? super T, ? super P> predicate, P parameter, Supplier<R> supplier)

Returns all elements of the stream that return true when evaluating the predicate with the parameter.

public static <T, V> Collector<T, ?, MutableMap<V, BigDecimal>>
sumByBigDecimal(Function<? super T, ? extends V> groupBy, Function<? super T, BigDecimal> function)

Groups and sums the values using the two specified functions.

public static <T, V> Collector<T, ?, MutableMap<V, BigInteger>>
sumByBigInteger(Function<? super T, ? extends V> groupBy, Function<? super T, BigInteger> function)

Groups and sums the values using the two specified functions.

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

Groups and sums the values using the two specified functions.

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

Groups and sums the values using the two specified functions.

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

Groups and sums the values using the two specified functions.

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

Groups and sums the values using the two specified functions.

public static <T> Collector<T, ?, BigDecimalSummaryStatistics>
summarizingBigDecimal(Function<? super T, BigDecimal> function)

Returns a BigDecimalSummaryStatistics applying the specified function to each element of the stream or collection.

public static <T> Collector<T, ?, BigIntegerSummaryStatistics>
summarizingBigInteger(Function<? super T, BigInteger> function)

Returns a BigIntegerSummaryStatistics applying the specified function to each element of the stream or collection.

public static <T> Collector<T, ?, BigDecimal>
summingBigDecimal(Function<? super T, BigDecimal> function)

Returns a BigDecimal sum applying the specified function to each element of the stream or collection.

public static <T> Collector<T, ?, BigInteger>
summingBigInteger(Function<? super T, BigInteger> function)

Returns a BigInteger sum applying the specified function to each element of the stream or collection.

public static <T> Collector<T, ?, MutableBag<T>>
toBag()

Returns the elements as a MutableBag.

public static <T, K> Collector<T, ?, MutableBagMultimap<K, T>>
toBagMultimap(Function<? super T, ? extends K> groupBy)

Returns the elements as an MutableBagMultimap grouping each element using the specified groupBy Function.

public static <T, K, V> Collector<T, ?, MutableBagMultimap<K, V>>
toBagMultimap(Function<? super T, ? extends K> groupBy, Function<? super T, ? extends V> valueFunction)

Returns the elements as an MutableBagMultimap grouping each element using the specified groupBy Function and converting each element to the value returned by applying the specified Function valueFunction.

public static <T, K, V> Collector<T, ?, MutableBiMap<K, V>>
toBiMap(Function<? super T, ? extends K> keyFunction, Function<? super T, ? extends V> valueFunction)

Returns the elements as a MutableBiMap applying the keyFunction and valueFunction to each element.

public static <T> Collector<T, ?, ImmutableBag<T>>
toImmutableBag()

Returns the elements as an ImmutableBag.

public static <T, K> Collector<T, ?, ImmutableBagMultimap<K, T>>
toImmutableBagMultimap(Function<? super T, ? extends K> groupBy)

Returns the elements as an ImmutableBagMultimap grouping each element using the specified groupBy Function.

public static <T, K, V> Collector<T, ?, ImmutableBagMultimap<K, V>>
toImmutableBagMultimap(Function<? super T, ? extends K> groupBy, Function<? super T, ? extends V> valueFunction)

Returns the elements as an ImmutableBagMultimap grouping each element using the specified groupBy Function and converting each element to the value returned by applying the specified Function valueFunction.

public static <T, K, V> Collector<T, ?, ImmutableBiMap<K, V>>
toImmutableBiMap(Function<? super T, ? extends K> keyFunction, Function<? super T, ? extends V> valueFunction)

Returns the elements as an ImmutableBiMap applying the keyFunction and valueFunction to each element.

public static <T> Collector<T, ?, ImmutableList<T>>
toImmutableList()

Returns the elements as an ImmutableList.

public static <T, K> Collector<T, ?, ImmutableListMultimap<K, T>>
toImmutableListMultimap(Function<? super T, ? extends K> groupBy)

Returns the elements as an ImmutableListMultimap grouping each element using the specified groupBy Function.

public static <T, K, V> Collector<T, ?, ImmutableListMultimap<K, V>>
toImmutableListMultimap(Function<? super T, ? extends K> groupBy, Function<? super T, ? extends V> valueFunction)

Returns the elements as an ImmutableListMultimap grouping each element using the specified groupBy Function and converting each element to the value returned by applying the specified Function valueFunction.

public static <T, K, V> Collector<T, ?, ImmutableMap<K, V>>
toImmutableMap(Function<? super T, ? extends K> keyFunction, Function<? super T, ? extends V> valueFunction)

Returns the elements as an ImmutableMap applying the keyFunction and valueFunction to each element.

public static <T> Collector<T, ?, ImmutableSet<T>>
toImmutableSet()

Returns the elements as an ImmutableSet.

public static <T, K> Collector<T, ?, ImmutableSetMultimap<K, T>>
toImmutableSetMultimap(Function<? super T, ? extends K> groupBy)

Returns the elements as an ImmutableSetMultimap grouping each element using the specified groupBy Function.

public static <T, K, V> Collector<T, ?, ImmutableSetMultimap<K, V>>
toImmutableSetMultimap(Function<? super T, ? extends K> groupBy, Function<? super T, ? extends V> valueFunction)

Returns the elements as an ImmutableSetMultimap grouping each element using the specified groupBy Function and converting each element to the value returned by applying the specified Function valueFunction.

public static <T> Collector<T, ?, ImmutableSortedBag<T>>
toImmutableSortedBag()

Returns the elements as an ImmutableSortedBag.

public static <T> Collector<T, ?, ImmutableSortedBag<T>>
toImmutableSortedBag(Comparator<? super T> comparator)

Returns the elements as an ImmutableSortedBag using the specified comparator.

public static <T, V extends Comparable<? super V>> Collector<T, ?, ImmutableSortedBag<T>>
toImmutableSortedBagBy(Function<? super T, ? extends V> function)

Returns the elements as a ImmutableSortedBag using the specified function.

public static <T> Collector<T, ?, ImmutableList<T>>
toImmutableSortedList()

Returns the elements as an ImmutableList that has been sorted.

public static <T> Collector<T, ?, ImmutableList<T>>
toImmutableSortedList(Comparator<? super T> comparator)

Returns the elements as an ImmutableList that has been sorted using the specified comparator.

public static <T, V extends Comparable<? super V>> Collector<T, ?, ImmutableList<T>>
toImmutableSortedListBy(Function<? super T, ? extends V> function)

Returns the elements as a ImmutableList that has been sorted using the specified comparator.

public static <T, K, V> Collector<T, ?, ImmutableSortedMap<K, V>>
toImmutableSortedMap(Function<? super T, ? extends K> keyFunction, Function<? super T, ? extends V> valueFunction)

Returns the elements as a ImmutableSortedMap that has been sorted after applying the keyFunction and valueFunction to each element.

public static <T, K, V> Collector<T, ?, ImmutableSortedMap<K, V>>
toImmutableSortedMap(Comparator<? super K> comparator, Function<? super T, ? extends K> keyFunction, Function<? super T, ? extends V> valueFunction)

Returns the elements as a ImmutableSortedMap that has been sorted using the specified comparator after applying the keyFunction and valueFunction to each element.

public static <T, KK extends Comparable<? super KK>, K, V> Collector<T, ?, ImmutableSortedMap<K, V>>
toImmutableSortedMapBy(Function<? super K, KK> sortBy, Function<? super T, ? extends K> keyFunction, Function<? super T, ? extends V> valueFunction)

Returns the elements as a ImmutableSortedMap that has been sorted using the specified comparator.

public static <T> Collector<T, ?, ImmutableSortedSet<T>>
toImmutableSortedSet()

Returns the elements as an ImmutableSortedSet.

public static <T> Collector<T, ?, ImmutableSortedSet<T>>
toImmutableSortedSet(Comparator<? super T> comparator)

Returns the elements as an ImmutableSortedSet using the specified comparator.

public static <T, V extends Comparable<? super V>> Collector<T, ?, ImmutableSortedSet<T>>
toImmutableSortedSetBy(Function<? super T, ? extends V> function)

Returns the elements as a ImmutableSortedSet using the specified function to compare each element.

public static <T> Collector<T, ?, ImmutableStack<T>>
toImmutableStack()

Returns the elements as an ImmutableStack.

public static <T> Collector<T, ?, MutableList<T>>
toList()

Returns the elements as a MutableList.

public static <T, K> Collector<T, ?, MutableListMultimap<K, T>>
toListMultimap(Function<? super T, ? extends K> groupBy)

Returns the elements as an MutableListMultimap grouping each element using the specified groupBy Function.

public static <T, K, V> Collector<T, ?, MutableListMultimap<K, V>>
toListMultimap(Function<? super T, ? extends K> groupBy, Function<? super T, ? extends V> valueFunction)

Returns the elements as an MutableListMultimap grouping each element using the specified groupBy Function and converting each element to the value returned by applying the specified Function valueFunction.

public static <T, K, V> Collector<T, ?, MutableMap<K, V>>
toMap(Function<? super T, ? extends K> keyFunction, Function<? super T, ? extends V> valueFunction)

Returns the elements as a MutableMap applying the keyFunction and valueFunction to each element.

public static <T> Collector<T, ?, MutableSet<T>>
toSet()

Returns the elements as a MutableSet.

public static <T, K> Collector<T, ?, MutableSetMultimap<K, T>>
toSetMultimap(Function<? super T, ? extends K> groupBy)

Returns the elements as an MutableSetMultimap grouping each element using the specified groupBy Function.

public static <T, K, V> Collector<T, ?, MutableSetMultimap<K, V>>
toSetMultimap(Function<? super T, ? extends K> groupBy, Function<? super T, ? extends V> valueFunction)

Returns the elements as an MutableSetMultimap grouping each element using the specified groupBy Function and converting each element to the value returned by applying the specified Function valueFunction.

public static <T> Collector<T, ?, MutableSortedBag<T>>
toSortedBag()

Returns the elements as a MutableSortedBag.

public static <T> Collector<T, ?, MutableSortedBag<T>>
toSortedBag(Comparator<? super T> comparator)

Returns the elements as a MutableSortedBag using the specified comparator.

public static <T, V extends Comparable<? super V>> Collector<T, ?, MutableSortedBag<T>>
toSortedBagBy(Function<? super T, ? extends V> function)

Returns the elements as a MutableSortedBag using the specified function.

public static <T> Collector<T, ?, MutableList<T>>
toSortedList()

Returns the elements as a MutableList that has been sorted.

public static <T> Collector<T, ?, MutableList<T>>
toSortedList(Comparator<? super T> comparator)

Returns the elements as a MutableList that has been sorted using the specified comparator.

public static <T, V extends Comparable<? super V>> Collector<T, ?, MutableList<T>>
toSortedListBy(Function<? super T, ? extends V> function)

Returns the elements as a MutableList that has been sorted using the specified comparator.

public static <T, K, V> Collector<T, ?, MutableSortedMap<K, V>>
toSortedMap(Function<? super T, ? extends K> keyFunction, Function<? super T, ? extends V> valueFunction)

Returns the elements as a MutableSortedMap that has been sorted after applying the keyFunction and valueFunction to each element.

public static <T, K, V> Collector<T, ?, MutableSortedMap<K, V>>
toSortedMap(Comparator<? super K> comparator, Function<? super T, ? extends K> keyFunction, Function<? super T, ? extends V> valueFunction)

Returns the elements as a MutableSortedMap that has been sorted using the specified comparator after applying the keyFunction and valueFunction to each element.

public static <T, KK extends Comparable<? super KK>, K, V> Collector<T, ?, MutableSortedMap<K, V>>
toSortedMapBy(Function<? super K, KK> sortBy, Function<? super T, ? extends K> keyFunction, Function<? super T, ? extends V> valueFunction)

Returns the elements as a MutableSortedMap that has been sorted using the specified comparator after applying the keyFunction and valueFunction to each element.

public static <T> Collector<T, ?, MutableSortedSet<T>>
toSortedSet()

Returns the elements as a MutableSortedSet.

public static <T> Collector<T, ?, MutableSortedSet<T>>
toSortedSet(Comparator<? super T> comparator)

Returns the elements as a MutableSortedSet using the specified comparator.

public static <T, V extends Comparable<? super V>> Collector<T, ?, MutableSortedSet<T>>
toSortedSetBy(Function<? super T, ? extends V> function)

Returns the elements as a MutableSortedSet using the specified function to compare each element.

public static <T> Collector<T, ?, MutableStack<T>>
toStack()

Returns the elements as a MutableStack.

public static <T, S> Collector<T, ?, MutableList<Pair<T, S>>>
zip(Iterable<S> other)

Returns a MutableList formed from this stream of elements and another Iterable by combining corresponding elements in pairs.

public static <T> Collector<T, ?, MutableList<ObjectIntPair<T>>>
zipWithIndex()

Returns a MutableList of pairs formed from this stream of elements its indices.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait