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

java.lang.Object
  extended by ch.bfh.algo.core.sequence.LinkedIterator<E,P>
      extended by ch.bfh.algo.core.sequence.LinkedPositionIterator<E,P>
All Implemented Interfaces:
PositionIterator<E,P>, PositionListIterator<E,P>, Iterator<Position<E>>, ListIterator<Position<E>>

public class LinkedPositionIterator<E,P extends GenericLinkedPosition<E,P>>
extends LinkedIterator<E,P>
implements PositionListIterator<E,P>


Constructor Summary
LinkedPositionIterator(GenericLinkedSequence<E,P> sequence, P before, P after)
           
 
Method Summary
 void add(Position<E> element)
           
 P next()
           
 P previous()
           
 void remove()
           
 void set(Position<E> o)
           
 
Methods inherited from class ch.bfh.algo.core.sequence.LinkedIterator
addElement, finalize, hasNext, hasPrevious, nextElement, nextIndex, nextPosition, previousElement, previousIndex, previousPosition, setElement
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface java.util.ListIterator
hasNext, hasPrevious, nextIndex, previousIndex
 

Constructor Detail

LinkedPositionIterator

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

next

public P next()
Specified by:
next in interface PositionIterator<E,P extends GenericLinkedPosition<E,P>>
Specified by:
next in interface Iterator<Position<E>>
Specified by:
next in interface ListIterator<Position<E>>

previous

public P previous()
Specified by:
previous in interface PositionListIterator<E,P extends GenericLinkedPosition<E,P>>
Specified by:
previous in interface ListIterator<Position<E>>

add

public void add(Position<E> element)
Specified by:
add in interface ListIterator<Position<E>>

remove

public void remove()
Specified by:
remove in interface Iterator<Position<E>>
Specified by:
remove in interface ListIterator<Position<E>>
Overrides:
remove in class LinkedIterator<E,P extends GenericLinkedPosition<E,P>>

set

public void set(Position<E> o)
Specified by:
set in interface ListIterator<Position<E>>