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, wait
forEach, spliterator
forEachRemaining, hasNext, next
public Iterator<T> iterator()
public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
IOException