public class BSTTreeNode
extends java.lang.Object
Constructor and Description |
---|
BSTTreeNode()
The constructor initializes the three fields to null.
|
BSTTreeNode(CrimeRecordList data,
BSTTreeNode lc,
BSTTreeNode rc) |
Modifier and Type | Method and Description |
---|---|
CrimeRecordList |
getData() |
BSTTreeNode |
getLc() |
BSTTreeNode |
getRc() |
void |
setData(CrimeRecordList data) |
void |
setLc(BSTTreeNode lc) |
void |
setRc(BSTTreeNode rc) |
public BSTTreeNode()
public BSTTreeNode(CrimeRecordList data, BSTTreeNode lc, BSTTreeNode rc)
data
- is a list of crime recordslc
- is a pointer to the left childrc
- is a pointer to the right childpublic BSTTreeNode getLc()
public BSTTreeNode getRc()
public void setLc(BSTTreeNode lc)
public void setRc(BSTTreeNode rc)
public CrimeRecordList getData()
public void setData(CrimeRecordList data)