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, wait
forEachRemaining
public void close()
CloseableIterator
close
in interface CloseableIterator<T>
close
in interface Closeable
close
in interface AutoCloseable
Copyright © 2022. All rights reserved.