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
-
Node()
- initializes the node
-
Node(Object, Node)
-
initializes the node with the data and pointer to next node
-
get()
-
returns the contents of the node
-
next()
-
returns pointer to next node
-
set(Object)
-
sets the contents of the node
-
setNext(Node)
-
sets the next node in the list
Node
public Node()
- initializes the node
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
get
public Object get()
- returns the contents of the node
- Returns:
- data object
next
public Node next()
- returns pointer to next node
- Returns:
- Node object
set
public void set(Object data)
- sets the contents of the node
- Parameters:
- data - object to be set
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