Interface CloseableIterator<E>

All Superinterfaces:
AutoCloseable, Closeable, Iterator<E>

public interface CloseableIterator<E> extends Iterator<E>, Closeable
API for an iterator that is also Closeable.

The expected use pattern of this class is something along these lines:

 
 try ( CloseableIterator<Object> itr = thing.iterator() ) {
   // do something with Iterator
 }
 
 
Version:
1.0
Author:
matt