Interface CloseableIterator<E>

All Superinterfaces:
AutoCloseable, Iterator<E>
All Known Implementing Classes:
FunctionIterator

public interface CloseableIterator<E>
extends Iterator<E>, AutoCloseable
A CloseableIterator is intended to be used when it may hold resources (such as file or socket handles). This allows implementations to clean up any resources they need to keep open to iterate over elements.
Since:
4.3.15
Author:
Ruslan Stelmachenko, Gary Russell