|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--BinaryTree.Node
A binary tree node, where the associated data item is a generic Object.
Field Summary | |
private BinaryTree.NodeReference |
mLeft
Reference object for the left link |
private java.lang.Object |
mObj
key/data object associated with this node |
private BinaryTree.NodeReference |
mRight
Reference object for the right link |
Constructor Summary | |
BinaryTree.Node(java.lang.Object obj)
When a Node is created, it is constructed with a left and right reference object. |
Method Summary | |
BinaryTree.Node |
getLeft()
get the Node on the left branch |
BinaryTree.NodeReference |
getLeftRef()
get a reference to the left branch |
java.lang.Object |
getObj()
get the Object associated with the Node |
BinaryTree.Node |
getRight()
get the Node on the right branch |
BinaryTree.NodeReference |
getRightRef()
get a reference to the right branch |
private void |
init()
Initialize the left and right links |
void |
setLeft(BinaryTree.Node left)
set the Node on the left branch |
void |
setRight(BinaryTree.Node right)
set the Node on the right branch |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private java.lang.Object mObj
private BinaryTree.NodeReference mLeft
private BinaryTree.NodeReference mRight
Constructor Detail |
public BinaryTree.Node(java.lang.Object obj)
Method Detail |
private void init()
public java.lang.Object getObj()
public BinaryTree.NodeReference getLeftRef()
public BinaryTree.NodeReference getRightRef()
public BinaryTree.Node getLeft()
public void setLeft(BinaryTree.Node left)
public BinaryTree.Node getRight()
public void setRight(BinaryTree.Node right)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |