Interface CloseableIterator<T>

Type Parameters:
T - type of the iterated data
All Superinterfaces:
AutoCloseable, Iterator<T>

@PublicApi public interface CloseableIterator<T> extends Iterator<T>, AutoCloseable
An auto-closeable wrapper for the Iterator class, so you should use this class with try-with-resources statements!