Class CloseableIteratorIteration<E>

    • Constructor Detail

      • CloseableIteratorIteration

        public CloseableIteratorIteration​(Iterator<? extends E> iter)
        Creates a CloseableIteratorIteration that wraps the supplied iterator.
    • Method Detail

      • 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>
      • handleClose

        protected void handleClose()
      • isClosed

        public final boolean isClosed()
        Checks whether this CloseableIteration has been closed.
        Returns:
        true if the CloseableIteration has been closed, false otherwise.