ch.bfh.algo.core.sequence
Class LinkedElementIterator<E,P extends GenericLinkedPosition<E,P>>
java.lang.Object
ch.bfh.algo.core.sequence.LinkedIterator<E,P>
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>
Methods inherited from class ch.bfh.algo.core.sequence.LinkedIterator |
addElement, finalize, hasNext, hasPrevious, nextElement, nextIndex, nextPosition, previousElement, previousIndex, previousPosition, remove, setElement |
LinkedElementIterator
public LinkedElementIterator(GenericLinkedSequence<E,P> sequence,
P before,
P after)
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>