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, wait
forEachRemaining
public void close() throws Exception
close
in interface AutoCloseable
Exception
Copyright © 2020. All rights reserved.