BRUtil - Making Java a Kinder, Gentler, Place to be.

brutil
Class TreeEntry

java.lang.Object
  |
  +--brutil.TreeEntry
Direct Known Subclasses:
BSTree.Entry

public class TreeEntry
extends java.lang.Object


Constructor Summary
TreeEntry(java.lang.Object key, java.lang.Object value)
          MPH--These are commented out because they are specific to the Red-Black Tree.
 
Method Summary
protected  boolean equals(TreeEntry e)
           
 java.lang.Object getKey()
           
 java.lang.Object getValue()
           
protected  java.lang.Object setValue(java.lang.Object v)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TreeEntry

public TreeEntry(java.lang.Object key,
                 java.lang.Object value)
MPH--These are commented out because they are specific to the Red-Black Tree. These fields can be added to the RBTree implementation of an entension to this class. public static final boolean BLACK = true; public static final boolean RED = false; boolean color;
Method Detail

getValue

public java.lang.Object getValue()

getKey

public java.lang.Object getKey()

setValue

protected java.lang.Object setValue(java.lang.Object v)

equals

protected boolean equals(TreeEntry e)

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object


BRUtil - Making Java a Kinder, Gentler, Place to be.