Class MultiIterator<E>

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

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

      Constructors 
      Constructor Description
      MultiIterator​(java.util.Iterator<E>[] iterators)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected I get​(int index)  
      boolean hasNext()  
      protected void moveTo​(int index)  
      E next()  
      • Methods inherited from class java.lang.Object

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

        forEachRemaining, remove
    • Constructor Detail

      • MultiIterator

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

      • hasNext

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

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

        protected void moveTo​(int index)
      • get

        protected I get​(int index)