|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectBinarySearchTree.BSTEntry
An extension of Map.Entry in the java.util package used for exporting a list view, or an iterator of the contents of this tree. Each entry contains a key and its associated value as well as the comparator used to order these pairs in the map.
Field Summary | |
protected BinarySearchTree.BSTNode |
node
The node represented by this BSTEntry; |
Method Summary | |
boolean |
equals(java.lang.Object o)
Tests equivalence of the keys in two BSTEntries according to the stored comparator. |
java.lang.Object |
getKey()
returns the key represented this entry. |
java.lang.Object |
getValue()
returns the value represented this entry. |
java.lang.Object |
setValue(java.lang.Object value)
Changes the value in the key/value pair represented by this BSTEntry. |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface java.util.Map.Entry |
hashCode |
Field Detail |
protected BinarySearchTree.BSTNode node
Method Detail |
public boolean equals(java.lang.Object o)
equals
in interface java.util.Map.Entry
o
- The BSTEntry to compare with.
public java.lang.Object getKey()
getKey
in interface java.util.Map.Entry
public java.lang.Object getValue()
getValue
in interface java.util.Map.Entry
public java.lang.Object setValue(java.lang.Object value)
setValue
in interface java.util.Map.Entry
value
- new value corresponding to this BSTEntry
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |