public abstract class AbstractIterator<E> extends Object implements Iterator<E>
Constructor and Description |
---|
AbstractIterator() |
Modifier and Type | Method and Description |
---|---|
protected abstract E |
advance() |
boolean |
hasNext() |
protected boolean |
isIterating() |
E |
next() |
E |
peek()
Returns the next element in the iterator, if one exists.
|
void |
remove() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
forEachRemaining
protected E next
protected abstract E advance()
public E peek()
protected boolean isIterating()