Interface CloseableIterator<E>

  • Type Parameters:
    E - the type of elements returned by this iterator
    All Superinterfaces:
    AutoCloseable, Closeable, Iterator<E>
    All Known Subinterfaces:
    CloseableListIterator<E>

    @ParametersAreNonnullByDefault
    public interface CloseableIterator<E>
    extends Iterator<E>, Closeable
    A closeable Iterator that allows implementations to clean up any resources they need to keep open to iterate over elements.