public abstract class AbstractIterator<T>
extends java.lang.Object
implements java.util.Iterator<T>
computeNextElement()
method.Modifier and Type | Field and Description |
---|---|
protected static java.lang.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 java.lang.Object |
computeNextElement()
Returns the next iteration element, or
END_OF_DATA if the end of the iteration has been reached. |
static <T> java.util.ListIterator<T> |
empty() |
boolean |
hasNext() |
T |
next() |
void |
remove() |
protected static final java.lang.Object END_OF_DATA
computeNextElement()
to indicate the end of the iteration.public final boolean hasNext()
hasNext
in interface java.util.Iterator<T>
public void remove()
remove
in interface java.util.Iterator<T>
protected abstract java.lang.Object computeNextElement()
END_OF_DATA
if the end of the iteration has been reached.public static <T> java.util.ListIterator<T> empty()
Copyright (c) 2004-2019 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 v1.0 which accompanies this distribution, and is available at http://www.eclipse.org/legal/epl-v10.html