net.datastructures
Class DLNode<E>
java.lang.Object
net.datastructures.DLNode<E>
public class DLNode<E>
- extends java.lang.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 |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
setElement
public void setElement(E newElem)
setNext
public void setNext(DLNode<E> newNext)
setPrev
public void setPrev(DLNode<E> newPrev)
getElement
public E getElement()
getNext
public DLNode<E> getNext()
getPrev
public DLNode<E> getPrev()