Interface CloseableIterator<E>

  • Type Parameters:
    E - the element type of this iterator
    All Superinterfaces:
    java.util.Iterator<E>

    @OpenApiAll
    public interface CloseableIterator<E>
    extends java.util.Iterator<E>
    Closeable iterator
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      void close()
      Closes the iterator
      boolean isClosed()
      Checks whether the iterator is closed
      • Methods inherited from interface java.util.Iterator

        forEachRemaining, hasNext, next, remove
    • Method Detail

      • close

        void close()
        Closes the iterator
      • isClosed

        boolean isClosed()
        Checks whether the iterator is closed
        Returns:
        true if iterator is closed, false otherwise