|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sf.beanlib.utils.range.ExtensibleTreeMap.NodeEntry<K,V>
static class ExtensibleTreeMap.NodeEntry<K,V>
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) K |
key
|
(package private) ExtensibleTreeMap.NodeEntry<K,V> |
left
|
(package private) ExtensibleTreeMap.NodeEntry<K,V> |
parent
|
(package private) ExtensibleTreeMap.NodeEntry<K,V> |
right
|
(package private) V |
value
|
Constructor Summary | |
---|---|
ExtensibleTreeMap.NodeEntry(K key,
V value,
ExtensibleTreeMap.NodeEntry<K,V> 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)
|
K |
getKey()
Returns the key. |
V |
getValue()
Returns the value associated with the key. |
int |
hashCode()
|
V |
setValue(V 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 |
---|
K key
V value
ExtensibleTreeMap.NodeEntry<K,V> left
ExtensibleTreeMap.NodeEntry<K,V> right
ExtensibleTreeMap.NodeEntry<K,V> parent
boolean color
Constructor Detail |
---|
ExtensibleTreeMap.NodeEntry(K key, V value, ExtensibleTreeMap.NodeEntry<K,V> parent)
Method Detail |
---|
public K getKey()
getKey
in interface Map.Entry<K,V>
public V getValue()
getValue
in interface Map.Entry<K,V>
public V setValue(V value)
setValue
in interface Map.Entry<K,V>
public boolean equals(Object o)
equals
in interface Map.Entry<K,V>
equals
in class Object
public int hashCode()
hashCode
in interface Map.Entry<K,V>
hashCode
in class Object
public String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |