Closeable, AutoCloseable, Iterable<T>, Iterator<T>public abstract class IterableOnceIterator<T> extends Object implements Iterable<T>, Iterator<T>, Closeable
| Constructor | Description |
|---|---|
IterableOnceIterator() |
| Modifier and Type | Method | 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.
|
forEach, spliteratorforEachRemaining, hasNext, nextpublic Iterator<T> iterator()
public void close()
throws IOException
close in interface AutoCloseableclose in interface CloseableIOException