linkedLists
Class DIntNode

java.lang.Object
  extended by linkedLists.DIntNode

public class DIntNode
extends java.lang.Object

Node of a doubly linked list of Integers


Constructor Summary
DIntNode(int e, DIntNode p, DIntNode n)
          Constructor that creates a node with given fields
 
Method Summary
 int getElement()
          Returns the element of this node
 DIntNode getNext()
          Returns the next node of this node
 DIntNode getPrev()
          Returns the previous node of this node
 void setElement(java.lang.Integer newElem)
          Sets the element of this node
 void setNext(DIntNode newNext)
          Sets the next node of this node
 void setPrev(DIntNode newPrev)
          Sets the previous node of this node
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DIntNode

public DIntNode(int e,
                DIntNode p,
                DIntNode n)
Constructor that creates a node with given fields

Method Detail

getElement

public int getElement()
Returns the element of this node


getPrev

public DIntNode getPrev()
Returns the previous node of this node


getNext

public DIntNode getNext()
Returns the next node of this node


setElement

public void setElement(java.lang.Integer newElem)
Sets the element of this node


setPrev

public void setPrev(DIntNode newPrev)
Sets the previous node of this node


setNext

public void setNext(DIntNode newNext)
Sets the next node of this node