Class MultiIterator<E>

  • Type Parameters:
    E - type of the class of the iterator.
    All Implemented Interfaces:
    Iterator<E>

    public class MultiIterator<E>
    extends Object
    Provides an Iterator that works over multiple underlying iterators.
    • Constructor Detail

      • MultiIterator

        public MultiIterator​(Iterator<E>[] iterators)
    • Method Detail

      • hasNext

        public boolean hasNext()
        Specified by:
        hasNext in interface Iterator<E>
      • next

        public E next()
        Specified by:
        next in interface Iterator<E>
      • moveTo

        protected void moveTo​(int index)
      • get

        protected I get​(int index)