Class 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 Detail

      • MappedWithIndex

        public MappedWithIndex​(BiFunc<? super X,​Integer,​? extends Y> func,
                               Iterator<? extends X> iterator)
        Ctor.
        Type Parameters:
        X - Type of item
        Parameters:
        func - Func
        iterator - Source iterator