All Packages Class Hierarchy This Package Previous Next Index
Class optionCalc.Node
java.lang.Object
|
+----optionCalc.Node
- public class Node
- extends Object
-
key
- The (KeyInterface) data value
-
next
- The (Node) reference to the next node with this time value
-
prev
- The (Node) reference to the previous node with this time value
-
Node(KeyInterface)
- Constructs a Node object, and sets the initial
key data value.
-
Delete()
- Removes this node from the linked list
-
InsertAfter(Node)
- Inserts the given node after this node.
-
InsertBefore(Node)
- Inserts the given node before this node.
-
InsertElement(KeyInterface)
- Inserts the given key after this node
if it is not already in the list
-
printNode()
- Prints this node object
-
Search(KeyInterface)
- Searches the link-list starting at this node
for the specified key
prev
public Node prev
- The (Node) reference to the previous node with this time value
next
public Node next
- The (Node) reference to the next node with this time value
key
public KeyInterface key
- The (KeyInterface) data value
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
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
InsertAfter
public void InsertAfter(Node x)
- Inserts the given node after this node.
- Parameters:
- x - the (Node) to insert
InsertBefore
public void InsertBefore(Node x)
- Inserts the given node before this node.
- Parameters:
- x - the (Node) to insert
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
Delete
public void Delete()
- Removes this node from the linked list
printNode
public void printNode()
- Prints this node object
All Packages Class Hierarchy This Package Previous Next Index