Interface CloseableIterator<T>

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

    public interface CloseableIterator<T>
    extends java.util.Iterator<T>, java.io.Closeable
    :: DeveloperApi :: An iterator that may contain resources which should be released after use. Users of CloseableIterator are responsible for closing the iterator if they are done with it.
    Since:
    1.0.0
    • Method Summary

      • Methods inherited from interface java.io.Closeable

        close
      • Methods inherited from interface java.util.Iterator

        forEachRemaining, hasNext, next, remove