Class ZipWithIndexProcedure<T,R extends java.util.Collection<Pair<T,java.lang.Integer>>>
- java.lang.Object
-
- org.eclipse.collections.impl.block.procedure.ZipWithIndexProcedure<T,R>
-
- All Implemented Interfaces:
java.io.Serializable
,java.util.function.Consumer<T>
,Procedure<T>
public final class ZipWithIndexProcedure<T,R extends java.util.Collection<Pair<T,java.lang.Integer>>> extends java.lang.Object implements Procedure<T>
Creates a PairImpl of objects and their indexes and adds the result to a target collection.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description private int
index
private static long
serialVersionUID
private R
target
-
Constructor Summary
Constructors Constructor Description ZipWithIndexProcedure(R target)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static <TT,RR extends java.util.Collection<Pair<TT,java.lang.Integer>>>
ZipWithIndexProcedure<TT,RR>create(RR target)
void
value(T each)
-
-
-
Field Detail
-
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
-
index
private int index
-
-
Constructor Detail
-
ZipWithIndexProcedure
public ZipWithIndexProcedure(R target)
-
-