|
Algorithm Development Kit 1.0 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectalgs.model.list.DoubleNode<E>
E
- Type of the values stored by the underlying nodes.public class DoubleNode<E>
Double Linked list of elements parameterized by class E.
Constructor Summary | |
---|---|
DoubleNode(E e)
Construct node from the given element. |
Method Summary | |
---|---|
DoubleNode<E> |
next()
Return next. |
void |
next(DoubleNode<E> n)
Modifies the next link for this node. |
DoubleNode<E> |
prev()
Return previous. |
void |
prev(DoubleNode<E> p)
Modifies the previous link for this node. |
java.lang.String |
toString()
Return meaningful string. |
E |
value()
Return value stored with the node. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public DoubleNode(E e)
e
- Element to store with the node.Method Detail |
---|
public E value()
public DoubleNode<E> prev()
public DoubleNode<E> next()
public java.lang.String toString()
toString
in class java.lang.Object
public void prev(DoubleNode<E> p)
This is a dangerous operation and exposed only because algorithms often must make specific changes whose correctness is known only to them.
If you modify this link directly, then the DoubleLinkedList may incorrectly have the number of items in the list. Make sure you call 'resetSize' after making any specific changes using this method.
You have been warned.
p
- public void next(DoubleNode<E> n)
This is a dangerous operation and exposed only because algorithms often must make specific changes whose correctness is known only to them.
If you modify this link directly, then the DoubleLinkedList may incorrectly have the number of items in the list. Make sure you call 'resetSize' after making any specific changes using this method.
You have been warned.
n
-
|
Algorithm Development Kit 1.0 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |