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