ch.bfh.algo.core.sequence
Class GenericLinkedPosition<E,P extends GenericLinkedPosition<E,P>>
java.lang.Object
ch.bfh.algo.core.sequence.ConcretePosition<E,P>
ch.bfh.algo.core.sequence.GenericLinkedPosition<E,P>
- All Implemented Interfaces:
- GenericPosition<E,P>, Observable, Position<E>
- Direct Known Subclasses:
- GenericEdge, GenericVertex, LinkedPosition, ObserverPosition
public class GenericLinkedPosition<E,P extends GenericLinkedPosition<E,P>>
- extends ConcretePosition<E,P>
- implements Observable
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
GenericLinkedPosition
protected GenericLinkedPosition()
GenericLinkedPosition
protected GenericLinkedPosition(boolean observable)
container
public GenericLinkedSequence<E,P> container()
- Overrides:
container
in class ConcretePosition<E,P extends GenericLinkedPosition<E,P>>
getPrevious
protected P getPrevious()
setPrevious
protected void setPrevious(P previous)
getNext
protected P getNext()
setNext
protected void setNext(P next)
attachBefore
public ObserverPosition attachBefore(Observer observer)
- Specified by:
attachBefore
in interface Observable
attachAfter
public ObserverPosition attachAfter(Observer observer)
- Specified by:
attachAfter
in interface Observable
detachBefore
public void detachBefore(ObserverPosition position)
- Specified by:
detachBefore
in interface Observable
detachAfter
public void detachAfter(ObserverPosition position)
- Specified by:
detachAfter
in interface Observable
notifyBefore
public void notifyBefore()
- Specified by:
notifyBefore
in interface Observable
notifyAfter
public void notifyAfter()
- Specified by:
notifyAfter
in interface Observable