Package org.infinispan.api.common
Interface CloseableIterable<E>
- All Superinterfaces:
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
-
Method Summary
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
Method Details
-
iterator
CloseableIterator<E> iterator()
-