
public abstract class AbstractIterator<T> extends Object implements Iterator<T>
computeNextElement() method.| Modifier and Type | Field and Description |
|---|---|
protected static Object |
END_OF_DATA
The token to be used in
computeNextElement() to indicate the end of the iteration. |
| Constructor and Description |
|---|
AbstractIterator() |
| Modifier and Type | Method and Description |
|---|---|
protected abstract Object |
computeNextElement()
Returns the next iteration element, or
END_OF_DATA if the end of the iteration has been reached. |
static <T> ListIterator<T> |
empty() |
boolean |
hasNext() |
T |
next() |
void |
remove() |
protected static final Object END_OF_DATA
computeNextElement() to indicate the end of the iteration.protected abstract Object computeNextElement()
END_OF_DATA if the end of the iteration has been reached.public static <T> ListIterator<T> empty()
Copyright (c) 2011-2014 Eike Stepper (Berlin, Germany) and others.