public interface CloseableIterator<T,TEx extends java.lang.Exception>
extends java.lang.AutoCloseable
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Closes the Iterator.
|
T |
getNext()
Gets the next item in the iteration.
|
T getNext() throws TEx extends java.lang.Exception
ObjectClosedException - If the CloseableIterator has been closed.TEx - If an exception of this type occurred.TEx extends java.lang.Exceptionvoid close()
close in interface java.lang.AutoCloseable