public class DelegatingIterator<T> extends java.lang.Object implements CloseableIterator<T>
| Constructor and Description |
|---|
DelegatingIterator(java.util.Iterator<T> iterator) |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Should be implemented to close/release any underlying resources.
|
boolean |
hasNext() |
T |
next() |
void |
remove() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitstream, toListpublic DelegatingIterator(java.util.Iterator<T> iterator)
public void close()
CloseableIteratorclose in interface CloseableIterator<T>close in interface java.io.Closeableclose in interface java.lang.AutoCloseablepublic boolean hasNext()
hasNext in interface java.util.Iterator<T>public void remove()
remove in interface java.util.Iterator<T>