Top Description Fields Constructors Methods
org.eclipse.collections.impl.block.procedure

public final Class ZipWithIndexProcedure<T, R extends Collection<Pair<T, Integer>>>

extends Object
implements Procedure<T>
Class Inheritance
All Implemented Interfaces
org.eclipse.collections.api.block.procedure.Procedure, java.io.Serializable, java.util.function.Consumer
Imports
java.util.Collection, org.eclipse.collections.api.block.procedure.Procedure, org.eclipse.collections.api.tuple.Pair, org.eclipse.collections.impl.tuple.Tuples

Creates a PairImpl of objects and their indexes and adds the result to a target collection.

Field Summary

Modifier and TypeField and Description
private int
private static final long
private final R

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public static <TT, RR extends Collection<Pair<TT, Integer>>> ZipWithIndexProcedure<TT, RR>
create(RR target)

public void
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

indexback to summary
private int index
serialVersionUIDback to summary
private static final long serialVersionUID
targetback to summary
private final R target

Constructor Detail

ZipWithIndexProcedureback to summary
public ZipWithIndexProcedure(R target)

Method Detail

createback to summary
public static <TT, RR extends Collection<Pair<TT, Integer>>> ZipWithIndexProcedure<TT, RR> create(RR target)
valueback to summary
public void value(T each)

Implements org.eclipse.collections.api.block.procedure.Procedure.value.

Annotations
@Override