Interface CloseableIterable<E>

All Superinterfaces:
Iterable<E>

public interface CloseableIterable<E> extends Iterable<E>
Interface that provides semantics of a Iterable but produces CloseableIterator instances. Note that the iterators produced via iterator() do not need to be closed if fully iterated upon. Therefore, methods like Iterable.forEach(Consumer) and Iterator.forEachRemaining(Consumer) can be used without any worry to closing any iterators.
Since:
14.0