K - key value typeV - value value typeprotected static final class IndexedTreeMap.Entry<K,V> extends Object implements Map.Entry<K,V>
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
color |
protected K |
key |
protected IndexedTreeMap.Entry<K,V> |
left |
protected IndexedTreeMap.Entry<K,V> |
parent |
protected IndexedTreeMap.Entry<K,V> |
right |
protected V |
value |
protected int |
weight |
| Modifier | Constructor and Description |
|---|---|
protected |
Entry(K key,
V value,
IndexedTreeMap.Entry<K,V> parent)
Make a new cell with given key, value, and parent, and with
null child links, and BLACK color. |
| Modifier and Type | Method and Description |
|---|---|
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.
|
int |
sumup() |
String |
toString() |
void |
updateWeight(int delta) |
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcomparingByKey, comparingByKey, comparingByValue, comparingByValueprotected K key
protected V value
protected IndexedTreeMap.Entry<K,V> left
protected IndexedTreeMap.Entry<K,V> right
protected IndexedTreeMap.Entry<K,V> parent
protected boolean color
protected int weight
protected Entry(K key, V value, IndexedTreeMap.Entry<K,V> parent)
null child links, and BLACK color.key - given key to be searched forvalue - of given keyparent - of keypublic boolean equals(Object o)
public K getKey()
public V getValue()
public int hashCode()
public V setValue(V value)
public int sumup()
public void updateWeight(int delta)
Copyright © 2019 GSI Helmholtzzentrum für Schwerionenforschung GmbH. All rights reserved.