public abstract class IterableOnceIterator<T> extends Object implements Iterable<T>, Iterator<T>, Closeable
| Constructor and Description |
|---|
IterableOnceIterator() |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Does nothing, intended to be overridden when needed.
|
Iterator<T> |
iterator()
On the first call returns this object which is also an iterator.
|
void |
remove()
Operation not supported.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEach, spliteratorforEachRemaining, hasNext, nextpublic Iterator<T> iterator()
public void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableIOException