- All Superinterfaces:
- java.lang.AutoCloseable, java.io.Closeable, java.util.Iterator<T>
- All Known Implementing Classes:
- MFileIterator
public interface CloseableIterator<T>
extends java.util.Iterator<T>, java.io.Closeable
An iterator that must be closed.
try (CloseableIterator iter = getIterator()) {
// do stuff
}
- Since:
- 11/20/13