Package org.cactoos.iterable
Class MappedWithIndex<Y>
- java.lang.Object
-
- org.cactoos.iterable.IterableEnvelope<Y>
-
- org.cactoos.iterable.MappedWithIndex<Y>
-
- Type Parameters:
Y
- Type of target item
- All Implemented Interfaces:
Iterable<Y>
public final class MappedWithIndex<Y> extends IterableEnvelope<Y>
Mapped with index iterable.There is no thread-safety guarantee.
- Since:
- 1.0.0
-
-
Constructor Summary
Constructors Constructor Description MappedWithIndex(BiFunc<? super X,Integer,? extends Y> fnc, Iterable<? extends X> src)
Ctor.MappedWithIndex(BiFunc<? super X,Integer,? extends Y> fnc, X... src)
Ctor.
-
Method Summary
-
Methods inherited from class org.cactoos.iterable.IterableEnvelope
equals, hashCode, iterator, toString
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
-
-
-
Constructor Detail
-
MappedWithIndex
@SafeVarargs public MappedWithIndex(BiFunc<? super X,Integer,? extends Y> fnc, X... src)
Ctor.- Type Parameters:
X
- Type of source item- Parameters:
fnc
- Funcsrc
- Source iterable
-
-