abstract class AbstractIterator<T>
extends java.lang.Object
implements java.util.Iterator<T>
findNext()
.
Not intended for public use.
Modifier and Type | Field and Description |
---|---|
private T |
next |
protected T |
NO_MORE_ELEMENTS
A marker object that can be returned by
findNext() to mark the end of the iterator. |
Modifier | Constructor and Description |
---|---|
protected |
AbstractIterator() |
Modifier and Type | Method and Description |
---|---|
protected abstract T |
findNext() |
boolean |
hasNext() |
T |
next() |
void |
remove() |
protected final T NO_MORE_ELEMENTS
findNext()
to mark the end of the iterator.private T next
public boolean hasNext()
hasNext
in interface java.util.Iterator<T>
public final void remove()
remove
in interface java.util.Iterator<T>
protected abstract T findNext()
NO_MORE_ELEMENTS
if there are
no more elements