public class IteratorAdapter<T> extends Object implements CloseableIterator<T>
| Constructor and Description |
|---|
IteratorAdapter(Iterator<T> iter) |
IteratorAdapter(Iterator<T> iter,
Closeable closeable) |
| Modifier and Type | Method and Description |
|---|---|
List<T> |
asList() |
static <T> List<T> |
asList(Iterator<T> iter) |
void |
close()
Closes this iterator and releases any system resources associated
with it.
|
boolean |
hasNext() |
T |
next() |
void |
remove() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEachRemainingpublic void close()
CloseableIteratorclose in interface CloseableIterator<T>close in interface Closeableclose in interface AutoCloseableCopyright © 2025. All rights reserved.