CloseableIterator<T>, Closeable, AutoCloseable, Iterator<T>public class DelegatingIterator<T> extends Object implements CloseableIterator<T>
| Constructor | Description |
|---|---|
DelegatingIterator(Iterator<T> iterator) |
| Modifier and Type | Method | Description |
|---|---|---|
void |
close() |
Should be implemented to close/release any underlying resources.
|
boolean |
hasNext() |
|
T |
next() |
|
void |
remove() |
stream, toListforEachRemainingpublic void close()
CloseableIteratorclose in interface AutoCloseableclose in interface Closeableclose in interface CloseableIterator<T>