Class Mapped<Y>

  • Type Parameters:
    Y - Type of target item
    All Implemented Interfaces:
    Iterator<Y>

    public final class Mapped<Y>
    extends IteratorEnvelope<Y>
    Mapped iterator.

    There is no thread-safety guarantee.

    Since:
    0.1
    • Constructor Detail

      • Mapped

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