public class DefaultCloseableIterator<T> extends Object implements CloseableIterator<T>
CloseableIterator that simply wraps an existing Iterator. This
implementation has a "do nothing" implementation of close().CloseableIterator.EmptyCloseableIterator<T>| Constructor and Description |
|---|
DefaultCloseableIterator(Iterator<T> iterator) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
boolean |
hasNext() |
T |
next() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcloseIterator, empty, offorEachRemaining, removepublic void close()
close in interface Closeableclose in interface AutoCloseableclose in interface CloseableIterator<T>Copyright © 2013–2023 Apache Software Foundation. All rights reserved.