|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.commons.collections4.map.AbstractHashedMap.HashEntry<K,V>
protected static class AbstractHashedMap.HashEntry<K,V>
HashEntry used to store the data.
If you subclass AbstractHashedMap but not HashEntry
then you will not be able to access the protected fields.
The entryXxx() methods on AbstractHashedMap exist
to provide the necessary access.
| Field Summary | |
|---|---|
protected int |
hashCode
The hash code of the key |
protected Object |
key
The key |
protected AbstractHashedMap.HashEntry<K,V> |
next
The next entry in the hash chain |
protected Object |
value
The value |
| Constructor Summary | |
|---|---|
protected |
AbstractHashedMap.HashEntry(AbstractHashedMap.HashEntry<K,V> next,
int hashCode,
Object key,
V value)
|
| Method Summary | |
|---|---|
boolean |
equals(Object obj)
|
K |
getKey()
Gets the key from the pair. |
V |
getValue()
Gets the value from the pair. |
int |
hashCode()
|
V |
setValue(V value)
|
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected AbstractHashedMap.HashEntry<K,V> next
protected int hashCode
protected Object key
protected Object value
| Constructor Detail |
|---|
protected AbstractHashedMap.HashEntry(AbstractHashedMap.HashEntry<K,V> next,
int hashCode,
Object key,
V value)
| Method Detail |
|---|
public K getKey()
KeyValue
getKey in interface Map.Entry<K,V>getKey in interface KeyValue<K,V>public V getValue()
KeyValue
getValue in interface Map.Entry<K,V>getValue in interface KeyValue<K,V>public V setValue(V value)
setValue in interface Map.Entry<K,V>public boolean equals(Object obj)
equals in interface Map.Entry<K,V>equals in class Objectpublic int hashCode()
hashCode in interface Map.Entry<K,V>hashCode in class Objectpublic String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||