net.cscott.jutil
Class BinaryTree.Node
java.lang.Object
net.cscott.jutil.BinaryTree.Node
- Direct Known Subclasses:
- RedBlackTree.RBNode
- Enclosing class:
- BinaryTree
public class BinaryTree.Node
- extends Object
A BinaryTree.Node
is an element of this tree.
Constructor Summary |
protected |
BinaryTree.Node(Object k)
Can only be called by makeNode(Object)
or by Node subclass constructors. |
key
public final Object key
BinaryTree.Node
protected BinaryTree.Node(Object k)
- Can only be called by makeNode(Object)
or by Node subclass constructors.
left
protected final BinaryTree.Node left()
right
protected final BinaryTree.Node right()
parent
protected final BinaryTree.Node parent()
toString
public String toString()
- Overrides:
toString
in class Object
Copyright (c) 2006 C. Scott Ananian