Interface CloseableIterator<T>

  • All Superinterfaces:
    java.lang.AutoCloseable, java.io.Closeable, java.util.Iterator<T>
    All Known Implementing Classes:
    EmptyCloseableIterator, IteratorAdapter

    public interface CloseableIterator<T>
    extends java.util.Iterator<T>, java.io.Closeable
    Iterator with Closeable
    Version:
    $Id$
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      void close()
      Closes this iterator and releases any system resources associated with it.
      • Methods inherited from interface java.util.Iterator

        forEachRemaining, hasNext, next, remove
    • Method Detail

      • close

        void close()
        Closes this iterator and releases any system resources associated with it. If the iterator is already closed then invoking this method has no effect.
        Specified by:
        close in interface java.lang.AutoCloseable
        Specified by:
        close in interface java.io.Closeable