/************************ BSTNode.java **************************
* node of a generic binary search tree
*/
public class BSTNode {
protected BaseObject key;
protected BSTNode left, right;
public BSTNode() {
left = right = null;
}
public BSTNode(BaseObject el) {
this(el,null,null);
}
public BSTNode(BaseObject el, BSTNode lt, BSTNode rt) {
key = el; left = lt; right = rt;
}
public void visit() {
key.visit();
}
}