org.eclipse.net4j.util.collection
Class AbstractListIterator<T>
java.lang.Object
org.eclipse.net4j.util.collection.AbstractIterator<T>
org.eclipse.net4j.util.collection.AbstractListIterator<T>
- All Implemented Interfaces:
- Iterator<T>
- public abstract class AbstractListIterator<T>
- extends AbstractIterator<T>
An abstract base class for custom list iterators that only requires to implement the AbstractIterator.computeNextElement()
and computePreviousElement()
methods.
- Since:
- 3.3
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AbstractListIterator
public AbstractListIterator()
hasPrevious
public final boolean hasPrevious()
previous
public final T previous()
computePreviousElement
protected abstract Object computePreviousElement()
- Returns the previous iteration element, or
AbstractIterator.END_OF_DATA
if the start of the iteration has been reached.
Copyright (c) 2011, 2012 Eike Stepper (Berlin, Germany) and others.