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>
An abstract base class for custom list iterators that only requires to implement the
AbstractIterator.computeNextElement() and computePreviousElement() methods.- Since:
- 3.3
- Author:
- Eike Stepper
-
Field Summary
Fields inherited from class org.eclipse.net4j.util.collection.AbstractIterator
END_OF_DATA -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract ObjectReturns the previous iteration element, orAbstractIterator.END_OF_DATAif the start of the iteration has been reached.final booleanfinal Tprevious()Methods inherited from class org.eclipse.net4j.util.collection.AbstractIterator
computeNextElement, empty, hasNext, next, removeMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.Iterator
forEachRemaining
-
Constructor Details
-
AbstractListIterator
public AbstractListIterator()
-
-
Method Details
-
hasPrevious
public final boolean hasPrevious() -
previous
-
computePreviousElement
Returns the previous iteration element, orAbstractIterator.END_OF_DATAif the start of the iteration has been reached.
-