ch.bfh.algo.core.sequence
Class LinkedIterator<E,P extends GenericLinkedPosition<E,P>>

java.lang.Object
  extended by ch.bfh.algo.core.sequence.LinkedIterator<E,P>
Direct Known Subclasses:
LinkedElementIterator, LinkedPositionIterator

public class LinkedIterator<E,P extends GenericLinkedPosition<E,P>>
extends Object


Constructor Summary
LinkedIterator(GenericLinkedSequence<E,P> sequence, P before, P after)
           
 
Method Summary
 void addElement(E element)
           
 void finalize()
           
 boolean hasNext()
           
 boolean hasPrevious()
           
 E nextElement()
           
 int nextIndex()
           
 P nextPosition()
           
 E previousElement()
           
 int previousIndex()
           
 P previousPosition()
           
 void remove()
           
 void setElement(E element)
           
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LinkedIterator

public LinkedIterator(GenericLinkedSequence<E,P> sequence,
                      P before,
                      P after)
Method Detail

hasNext

public boolean hasNext()

hasPrevious

public boolean hasPrevious()

nextPosition

public P nextPosition()

nextElement

public E nextElement()

nextIndex

public int nextIndex()

previousPosition

public P previousPosition()

previousElement

public E previousElement()

previousIndex

public int previousIndex()

addElement

public void addElement(E element)

remove

public void remove()

setElement

public void setElement(E element)

finalize

public void finalize()
              throws Throwable
Overrides:
finalize in class Object
Throws:
Throwable