Class IteratorOnClose<T>

    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      static <T> IteratorOnClose<T> atEnd​(java.util.Iterator<T> iterator, java.lang.Runnable closeHandler)  
      void close()  
      boolean hasNext()  
      T next()  
      • Methods inherited from class java.lang.Object

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

        forEachRemaining, remove
    • Method Detail

      • atEnd

        public static <T> IteratorOnClose<T> atEnd​(java.util.Iterator<T> iterator,
                                                   java.lang.Runnable closeHandler)
      • hasNext

        public boolean hasNext()
        Specified by:
        hasNext in interface java.util.Iterator<T>
        Overrides:
        hasNext in class IteratorWrapper<T>
      • next

        public T next()
        Specified by:
        next in interface java.util.Iterator<T>
        Overrides:
        next in class IteratorWrapper<T>