Class HeadOf<T>

  • Type Parameters:
    T - Element type
    All Implemented Interfaces:
    Iterator<T>

    public final class HeadOf<T>
    extends IteratorEnvelope<T>
    Head portion of the iterator.

    There is no thread-safety guarantee.

    Since:
    0.8
    • Constructor Detail

      • HeadOf

        public HeadOf​(int num,
                      Iterator<? extends T> iterator)
        Ctor.
        Parameters:
        num - Num of head elements
        iterator - Decorated iterator