All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class optionCalc.Node

java.lang.Object
   |
   +----optionCalc.Node

public class Node
extends Object

Variable Index

 o key
The (KeyInterface) data value
 o next
The (Node) reference to the next node with this time value
 o prev
The (Node) reference to the previous node with this time value

Constructor Index

 o Node(KeyInterface)
Constructs a Node object, and sets the initial key data value.

Method Index

 o Delete()
Removes this node from the linked list
 o InsertAfter(Node)
Inserts the given node after this node.
 o InsertBefore(Node)
Inserts the given node before this node.
 o InsertElement(KeyInterface)
Inserts the given key after this node if it is not already in the list
 o printNode()
Prints this node object
 o Search(KeyInterface)
Searches the link-list starting at this node for the specified key

Variables

 o prev
 public Node prev
The (Node) reference to the previous node with this time value

 o next
 public Node next
The (Node) reference to the next node with this time value

 o key
 public KeyInterface key
The (KeyInterface) data value

Constructors

 o Node
 public Node(KeyInterface k)
Constructs a Node object, and sets the initial key data value. The prev and next references are set to null.

Parameters:
k - the (KeyInterface) data value

Methods

 o Search
 public Node Search(KeyInterface k)
Searches the link-list starting at this node for the specified key

Parameters:
k - the (KeyInterface) data value to search for
 o InsertAfter
 public void InsertAfter(Node x)
Inserts the given node after this node.

Parameters:
x - the (Node) to insert
 o InsertBefore
 public void InsertBefore(Node x)
Inserts the given node before this node.

Parameters:
x - the (Node) to insert
 o InsertElement
 public Node InsertElement(KeyInterface k)
Inserts the given key after this node if it is not already in the list

Parameters:
k - the KeyInterface to the key to insert
 o Delete
 public void Delete()
Removes this node from the linked list

 o printNode
 public void printNode()
Prints this node object


All Packages  Class Hierarchy  This Package  Previous  Next  Index