Class DelegatingCloseableIterator<E>

  • All Implemented Interfaces:
    java.util.Iterator<E>, Closeable, CloseableIterator<E>

    public class DelegatingCloseableIterator<E>
    extends java.lang.Object
    implements CloseableIterator<E>
    Since:
    3.7
    Author:
    Eike Stepper
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void close()  
      boolean hasNext()  
      boolean isClosed()  
      E next()  
      void remove()  
      • 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
    • Constructor Detail

      • DelegatingCloseableIterator

        public DelegatingCloseableIterator​(java.util.Iterator<E> delegate)
    • 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>
      • remove

        public void remove()
        Specified by:
        remove in interface java.util.Iterator<E>
      • close

        public void close()
        Specified by:
        close in interface Closeable
      • isClosed

        public boolean isClosed()
        Specified by:
        isClosed in interface Closeable