- All Implemented Interfaces:
public class ResourceClosingIterator<T>
Wraps an Iterator, such that as soon as the iterator's hasNext method returns false, user-supplied code is executed.
This can be used for closing JDBC Connections, Statements, etc.
- This source is copyright Adrian Smith and licensed under the LGPL 3.
- See Also:
- Project on GitHub