ch.bfh.algo.core.sequence
Class LinkedElementIterator<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.LinkedElementIterator<E,P>
All Implemented Interfaces:
Iterator<E>, ListIterator<E>

public class LinkedElementIterator<E,P extends GenericLinkedPosition<E,P>>
extends LinkedIterator<E,P>
implements ListIterator<E>


Constructor Summary
LinkedElementIterator(GenericLinkedSequence<E,P> sequence, P before, P after)
           
 
Method Summary
 void add(E element)
           
 E next()
           
 E previous()
           
 void set(E element)
           
 
Methods inherited from class ch.bfh.algo.core.sequence.LinkedIterator
addElement, finalize, hasNext, hasPrevious, nextElement, nextIndex, nextPosition, previousElement, previousIndex, previousPosition, remove, 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, remove
 

Constructor Detail

LinkedElementIterator

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

next

public E next()
Specified by:
next in interface Iterator<E>
Specified by:
next in interface ListIterator<E>

previous

public E previous()
Specified by:
previous in interface ListIterator<E>

add

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

set

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