|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectgate.util.RBTreeMap.Entry
Node in the Tree. Doubles as a means to pass key-value pairs back to user (see Map.Entry).
Field Summary | |
(package private) boolean |
color
|
(package private) Object |
key
|
(package private) RBTreeMap.Entry |
left
|
(package private) RBTreeMap.Entry |
parent
|
(package private) RBTreeMap.Entry |
right
|
(package private) Object |
value
|
Constructor Summary | |
(package private) |
RBTreeMap.Entry(Object key,
Object value,
RBTreeMap.Entry parent)
Make a new cell with given key, value, and parent, and with null child links, and BLACK color. |
Method Summary | |
boolean |
equals(Object o)
|
Object |
getKey()
Returns the key. |
Object |
getValue()
Returns the value associated with the key. |
int |
hashCode()
|
Object |
setValue(Object value)
Replaces the value currently associated with the key with the given value. |
String |
toString()
|
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
Object key
Object value
RBTreeMap.Entry left
RBTreeMap.Entry right
RBTreeMap.Entry parent
boolean color
Constructor Detail |
RBTreeMap.Entry(Object key, Object value, RBTreeMap.Entry parent)
Method Detail |
public Object getKey()
getKey
in interface Map.Entry
public Object getValue()
getValue
in interface Map.Entry
public Object setValue(Object value)
setValue
in interface Map.Entry
public boolean equals(Object o)
equals
in interface Map.Entry
public int hashCode()
hashCode
in interface Map.Entry
public String toString()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |