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, wait
closeIterator, empty, of
forEachRemaining, remove
public void close()
close
in interface Closeable
close
in interface AutoCloseable
close
in interface CloseableIterator<T>
Copyright © 2013–2023 Apache Software Foundation. All rights reserved.