goldman.collection.ordered
Interface TreeNode<E>


public interface TreeNode<E>

The TreeNode interface must be supported by any class defining objects to be used as nodes in a search tree.


Method Summary
 TreeNode child(int i)
          Returns the ith child of this node.
 boolean isFrontier()
          Returns true if and only if this tree node is a frontier node.
 TreeNode<E> parent()
          Returns the parent of this tree node.
 int size()
          Returns the number of elements held in this tree node.
 

Method Detail

isFrontier

boolean isFrontier()
Returns true if and only if this tree node is a frontier node.


child

TreeNode child(int i)
Returns the ith child of this node.


size

int size()
Returns the number of elements held in this tree node.


parent

TreeNode<E> parent()
Returns the parent of this tree node.