|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.ObjectTreeNode
public class TreeNode
Class that represents a binary tree node
| Constructor Summary | |
|---|---|
TreeNode(String something)
Constructor that takes the string to store |
|
| Method Summary | |
|---|---|
String |
getData()
Method to return the data |
TreeNode |
getLeft()
Method to get the left child |
TreeNode |
getRight()
Method to get the right child |
void |
setData(String something)
Method to set the data at this node |
void |
setLeft(TreeNode newLeft)
Method to set the left child |
void |
setRight(TreeNode newRight)
Method to set the right child |
String |
toString()
Method to return a string of information |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public TreeNode(String something)
something - the string to store| Method Detail |
|---|
public String getData()
public void setData(String something)
something - the data to usepublic TreeNode getLeft()
public TreeNode getRight()
public void setLeft(TreeNode newLeft)
newLeft - the new left childpublic void setRight(TreeNode newRight)
newRight - the new right childpublic String toString()
toString in class Object
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||