public abstract class IterableOnceIterator<T>
extends java.lang.Object
implements java.lang.Iterable<T>, java.util.Iterator<T>, java.io.Closeable
| Constructor and Description |
|---|
IterableOnceIterator() |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Does nothing, intended to be overridden when needed.
|
java.util.Iterator<T> |
iterator()
On the first call returns this object which is also an iterator.
|
void |
remove()
Operation not supported.
|
public java.util.Iterator<T> iterator()
iterator in interface java.lang.Iterable<T>public void remove()
remove in interface java.util.Iterator<T>public void close()
throws java.io.IOException
close in interface java.io.Closeableclose in interface java.lang.AutoCloseablejava.io.IOException