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) 2014 Eike Stepper (Loehne, Germany) and others.
All rights reserved. This program and the accompanying materials are made available under the terms of the Eclipse Public License v2.0 which accompanies this distribution, and is available at http://www.eclipse.org/legal/epl-v20.html