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. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
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;
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