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, wait
spliterator, stream
forEachRemaining, remove
public ForwardingCloseableIterator(Iterator<? extends T> delegate)
ForwardingCloseableIterator
.delegate
- must not be null.public void close()
close
in interface Closeable
close
in interface AutoCloseable
close
in interface CloseableIterator<T>
Copyright © 2011–2021 Pivotal Software, Inc.. All rights reserved.