Package net.solarnetwork.util
Interface CloseableIterator<E>
- All Superinterfaces:
AutoCloseable,Closeable,Iterator<E>
API for an iterator that is also
Closeable.
The expected use pattern of this class is something along these lines:
try ( CloseableIterator<Object> itr = thing.iterator() ) {
// do something with Iterator
}
- Version:
- 1.0
- Author:
- matt
-
Method Summary
Methods inherited from interface java.util.Iterator
forEachRemaining, hasNext, next, remove