net.datastructures
Class DLNode
java.lang.Object
net.datastructures.DLNode
- public class DLNode
- extends Object
A simple node class for a doubly-linked list. Each node has a
reference to a stored element, a previous node, and a next node.
This class differs from the DNode
class in that it
does not implement the Position
interface, for
simplification purposes.
- Author:
- Roberto Tamassia
- See Also:
DNode
,
Position
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
setElement
public void setElement(Object newElem)
setNext
public void setNext(DLNode newNext)
setPrev
public void setPrev(DLNode newPrev)
getElement
public Object getElement()
getNext
public DLNode getNext()
getPrev
public DLNode getPrev()