All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class magician.PerfTools.Node

java.lang.Object
   |
   +----magician.PerfTools.Node

public class Node
extends Object
Node in a linked list which holds a data element and a pointer to the next node in the list


Constructor Index

 o Node()
initializes the node
 o Node(Object, Node)
initializes the node with the data and pointer to next node

Method Index

 o get()
returns the contents of the node
 o next()
returns pointer to next node
 o set(Object)
sets the contents of the node
 o setNext(Node)
sets the next node in the list

Constructors

 o Node
 public Node()
initializes the node

 o Node
 public Node(Object data,
             Node next)
initializes the node with the data and pointer to next node

Parameters:
data - the element
next - pointer to next node

Methods

 o get
 public Object get()
returns the contents of the node

Returns:
data object
 o next
 public Node next()
returns pointer to next node

Returns:
Node object
 o set
 public void set(Object data)
sets the contents of the node

Parameters:
data - object to be set
 o setNext
 public Node setNext(Node next)
sets the next node in the list

Parameters:
next - pointer to next node
Returns:
pointer to next node

All Packages  Class Hierarchy  This Package  Previous  Next  Index
1