|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--BSTTreeHead.NodeAndKey
An object which keeps both a BSTTree node and an integer key. Useful when dealing with waitingActions that must involve both a node and key. This class makes that possible within one object.
Constructor Summary | |
BSTTreeHead.NodeAndKey()
Constructor, making an empty NodeAndKey Object. |
|
BSTTreeHead.NodeAndKey(BSTTree node,
int key)
Constructor, making a NodeAndKey Object with the speficied node and key. |
Method Summary | |
int |
getKey()
Gets the key for the object. |
BSTTree |
getNode()
Gets the node for the object. |
protected void |
setKey(int key)
Sets the key for the object. |
protected void |
setNode(BSTTree node)
Sets the node for the object. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public BSTTreeHead.NodeAndKey()
public BSTTreeHead.NodeAndKey(BSTTree node, int key)
node
- BSTTree node for the current NodeAndKey.key
- int for the NodeAndKey.Method Detail |
protected void setNode(BSTTree node)
node
- BSTTree node for the object.protected void setKey(int key)
key
- int for the object.public BSTTree getNode()
public int getKey()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |