public abstract class AbstractIterator<E>
extends java.lang.Object
implements java.util.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() |
protected E next
public boolean hasNext()
hasNext in interface java.util.Iterator<E>public void remove()
remove in interface java.util.Iterator<E>protected abstract E advance()
public E peek()
protected boolean isIterating()