public class DelegatingIterator<T> extends Object implements CloseableIterator<T>
| Constructor and Description |
|---|
DelegatingIterator(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, toListforEachRemainingpublic void close()
CloseableIteratorclose in interface CloseableIterator<T>close in interface Closeableclose in interface AutoCloseable