linkedLists
Class IntNode

java.lang.Object
  extended by linkedLists.IntNode

public class IntNode
extends java.lang.Object

Node of a singly linked list of integers


Constructor Summary
IntNode()
          default constructor
IntNode(int i, IntNode n)
          Creates a node with the given element and next node
 
Method Summary
 int getElement()
          Returns the element of this node
 IntNode getNext()
          Returns the next node of this node.
 void setElement(java.lang.Integer i)
          Sets the element of this node
 void setNext(IntNode n)
          Sets the next field of this node.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IntNode

public IntNode()
default constructor


IntNode

public IntNode(int i,
               IntNode n)
Creates a node with the given element and next node

Method Detail

getElement

public int getElement()
Returns the element of this node


getNext

public IntNode getNext()
Returns the next node of this node.


setElement

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


setNext

public void setNext(IntNode n)
Sets the next field of this node.