Class Seq<E>

  • All Implemented Interfaces:
    java.util.Iterator<E>

    public final class Seq<E>
    extends BaseIterator<E>
    An Iterator of a sequence of values.
    • Constructor Summary

      Constructors 
      Constructor Description
      Seq​(int count, E[] values)
      Creates an Iterator of the first count elements of the given array.
      Seq​(E... values)
      Creates an Iterator of the given elements.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean hasNext()  
      E next()  
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface java.util.Iterator

        forEachRemaining
    • Constructor Detail

      • Seq

        @SafeVarargs
        public Seq​(E... values)
        Creates an Iterator of the given elements.
      • Seq

        public Seq​(int count,
                   E[] values)
        Creates an Iterator of the first count elements of the given array.
    • Method Detail

      • hasNext

        public boolean hasNext()
      • next

        public E next()