Package com.chemaxon.util.concurrent
Interface CloseableIterator<T>
- Type Parameters:
T
- type of the iterated data
- All Superinterfaces:
AutoCloseable
,Iterator<T>
An auto-closeable wrapper for the
Iterator
class, so you should use this class with try-with-resources
statements!-
Method Summary
Methods inherited from interface java.util.Iterator
forEachRemaining, hasNext, next, remove
-
Method Details
-
close
void close()- Specified by:
close
in interfaceAutoCloseable
-