org.eclipse.net4j.util.collection
Class AbstractListIterator<T>

java.lang.Object
  extended by org.eclipse.net4j.util.collection.AbstractIterator<T>
      extended by 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

Field Summary
 
Fields inherited from class org.eclipse.net4j.util.collection.AbstractIterator
END_OF_DATA
 
Constructor Summary
AbstractListIterator()
           
 
Method Summary
protected abstract  Object computePreviousElement()
          Returns the previous iteration element, or AbstractIterator.END_OF_DATA if the start of the iteration has been reached.
 boolean hasPrevious()
           
 T previous()
           
 
Methods inherited from class org.eclipse.net4j.util.collection.AbstractIterator
computeNextElement, hasNext, next, remove
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractListIterator

public AbstractListIterator()
Method Detail

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.