Interface CloseableIterator<T>

  • All Superinterfaces:
    java.lang.AutoCloseable, java.util.Iterator<T>

    public interface CloseableIterator<T>
    extends java.util.Iterator<T>, java.lang.AutoCloseable
    Unification of Iterator and AutoCloseable
    Since:
    5.2
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      void close()  
      • Methods inherited from interface java.util.Iterator

        forEachRemaining, hasNext, next, remove
    • Method Detail

      • close

        void close()
        Specified by:
        close in interface java.lang.AutoCloseable