Class MultiIterator<T>

    • Constructor Detail

      • MultiIterator

        public MultiIterator()
    • Method Detail

      • addIterator

        public void addIterator​(Iterator<T> iterator)
      • hasNext

        public boolean hasNext()
        Specified by:
        hasNext in interface Iterator<T>
      • remove

        public void remove()
        Specified by:
        remove in interface Iterator<T>
      • next

        public T next()
        Specified by:
        next in interface Iterator<T>
      • clear

        public void clear()
      • close

        public void close()
        Close the underlying iterators if auto-closeable. Note that when Exception is thrown from any iterator in the for loop on closing, remaining iterators possibly left unclosed.
        Specified by:
        close in interface AutoCloseable