Class ZipWithIndexProcedure<T,​R extends java.util.Collection<Pair<T,​java.lang.Integer>>>

  • 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
    • 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)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface java.util.function.Consumer

        andThen
      • Methods inherited from interface org.eclipse.collections.api.block.procedure.Procedure

        accept
    • Field Detail

      • index

        private int index
      • target

        private final R extends java.util.Collection<Pair<T,​java.lang.Integer>> target
    • Constructor Detail

      • ZipWithIndexProcedure

        public ZipWithIndexProcedure​(R target)
    • Method Detail

      • create

        public static <TT,​RR extends java.util.Collection<Pair<TT,​java.lang.Integer>>> ZipWithIndexProcedure<TT,​RR> create​(RR target)
      • value

        public void value​(T each)
        Specified by:
        value in interface Procedure<T>