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