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
Author:
Eike Stepper
  • Constructor Details

    • AbstractListIterator

      public AbstractListIterator()
  • Method Details

    • 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.