jds.util
Class BinaryNode

java.lang.Object
  |
  +--jds.util.BinaryNode

public class BinaryNode
extends java.lang.Object
implements java.io.Serializable

BinaryNode - one node in a binary tree; for use with book Classic Data Structures in Java by Timothy A Budd, published by Addison-Wesley, 2001.

See Also:
Serialized Form

Field Summary
 BinaryNode leftChild
          left child of node
 BinaryNode rightChild
          right child of node
 java.lang.Object value
          value being held by node
 
Constructor Summary
BinaryNode()
          initialize a newly created binary node
BinaryNode(java.lang.Object v)
          initialize a newly created binary node
 
Method Summary
 boolean isEmpty()
          return true if we are not a sentinel node
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

value

public java.lang.Object value
value being held by node

leftChild

public BinaryNode leftChild
left child of node

rightChild

public BinaryNode rightChild
right child of node
Constructor Detail

BinaryNode

public BinaryNode()
initialize a newly created binary node

BinaryNode

public BinaryNode(java.lang.Object v)
initialize a newly created binary node
Parameters:
v - value to be associated with new node
Method Detail

isEmpty

public boolean isEmpty()
return true if we are not a sentinel node