datastructures

net.datastructures
Class DLNode

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

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

Method Detail

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

datastructures