Class CloseablePeakableIteration<E>

    • Constructor Detail

      • CloseablePeakableIteration

        public CloseablePeakableIteration​(CloseableIteration<E> parent)
    • Method Detail

      • close

        public void close()
        Description copied from interface: CloseableIteration
        Closes this iteration, freeing any resources that it is holding. If the iteration has already been closed then invoking this method has no effect.
        Specified by:
        close in interface AutoCloseable
        Specified by:
        close in interface CloseableIteration<E>
      • hasNext

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

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

        public void remove()
        Specified by:
        remove in interface Iterator<E>
      • peek

        public E peek()