net.datastructures
Class DLNode<E>

java.lang.Object
  extended by 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

Method Summary
 E getElement()
           
 DLNode<E> getNext()
           
 DLNode<E> getPrev()
           
 void setElement(E newElem)
           
 void setNext(DLNode<E> newNext)
           
 void setPrev(DLNode<E> newPrev)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

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()