public interface CloseableIterable<E>
extends java.io.Closeable, java.lang.Iterable<E>
Iterable
and Closeable
interfaces. This is
useful when you have data that must be iterated on and may hold resources in the underlying implementation that
must be closed.
The close method will close any existing iterators that may be open to free resources