Package org.cactoos.iterator
Class MappedWithIndex<Y>
- java.lang.Object
-
- org.cactoos.iterator.IteratorEnvelope<Y>
-
- org.cactoos.iterator.MappedWithIndex<Y>
-
- Type Parameters:
Y
- Type of target item
- All Implemented Interfaces:
Iterator<Y>
public final class MappedWithIndex<Y> extends IteratorEnvelope<Y>
Mapped with index iterator.There is no thread-safety guarantee.
- Since:
- 1.0.0
-
-
Constructor Summary
Constructors Constructor Description MappedWithIndex(BiFunc<? super X,Integer,? extends Y> func, Iterator<? extends X> iterator)
Ctor.
-