All Packages Class Hierarchy This Package Previous Next Index
Class interestRate.Node
java.lang.Object
|
+----interestRate.Node
- public class Node
- extends Object
A node of a linked list.
-
key
-
-
next
-
-
prev
-
-
Node(KeyInterface)
-
-
Delete()
- Delete this node
-
InsertAfter(Node)
- Insert a node after a specified node
-
InsertBefore(Node)
- Insert a node before a specified node.
-
InsertElement(KeyInterface)
- Insert element in the link list
starting from the node if not already
there
-
print()
- print the linklist starting at the node
-
Search(KeyInterface)
- Search a node that is a successor of this node
and has a specified key.
prev
public Node prev
next
public Node next
key
public KeyInterface key
Node
public Node(KeyInterface k)
- Parameters:
- k - Key of that node.
Search
public Node Search(KeyInterface k)
- Search a node that is a successor of this node
and has a specified key.
- Parameters:
- k - Specifed Key
Delete
public void Delete()
- Delete this node
InsertAfter
public void InsertAfter(Node x)
- Insert a node after a specified node
InsertBefore
public void InsertBefore(Node x)
- Insert a node before a specified node.
InsertElement
public Node InsertElement(KeyInterface k)
- Insert element in the link list
starting from the node if not already
there
print
public void print()
- print the linklist starting at the node
All Packages Class Hierarchy This Package Previous Next Index