public class AutoCloseableIterator<E> extends Object implements Iterator<E>, AutoCloseable
| Constructor and Description |
|---|
AutoCloseableIterator(Iterator<E> delegate,
Closer resource) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
boolean |
hasNext() |
E |
next() |
void |
remove() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEachRemainingpublic void close()
throws Exception
close in interface AutoCloseableExceptionCopyright © 2020. All rights reserved.