K - V - public class ForwardingCloseableIterator<T> extends Object implements CloseableIterator<T>
CloseableIterator invocations to the configured Iterator delegate.| Constructor and Description |
|---|
ForwardingCloseableIterator(Iterator<? extends T> delegate)
Creates a new
ForwardingCloseableIterator. |
ForwardingCloseableIterator(Iterator<? extends T> delegate,
Runnable closeHandler)
|
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
boolean |
hasNext() |
T |
next() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEachRemaining, removepublic ForwardingCloseableIterator(Iterator<? extends T> delegate)
ForwardingCloseableIterator.delegate - must not be null.public void close()
close in interface Closeableclose in interface AutoCloseableclose in interface CloseableIterator<T>Copyright © 2011–2018 Pivotal Software, Inc.. All rights reserved.