public class ClosingIterator<T>
extends java.lang.Object
implements java.util.Iterator<T>
CloseableIterator, providing auto-close functionality when
 all of the elements in the iterator are consumed.| Constructor and Description | 
|---|
ClosingIterator(CloseableIterator<T> iterator)  | 
| Modifier and Type | Method and Description | 
|---|---|
boolean | 
hasNext()  | 
T | 
next()  | 
public ClosingIterator(CloseableIterator<T> iterator)