|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.apache.commons.collections.map.AbstractHashedMap.HashEntry
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 java.lang.Object |
key
The key |
protected AbstractHashedMap.HashEntry |
next
The next entry in the hash chain |
protected java.lang.Object |
value
The value |
| Constructor Summary | |
protected |
AbstractHashedMap.HashEntry(AbstractHashedMap.HashEntry next,
int hashCode,
java.lang.Object key,
java.lang.Object value)
|
| Method Summary | |
boolean |
equals(java.lang.Object obj)
|
java.lang.Object |
getKey()
Gets the key from the pair. |
java.lang.Object |
getValue()
Gets the value from the pair. |
int |
hashCode()
|
java.lang.Object |
setValue(java.lang.Object value)
|
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
protected AbstractHashedMap.HashEntry next
protected int hashCode
protected java.lang.Object key
protected java.lang.Object value
| Constructor Detail |
protected AbstractHashedMap.HashEntry(AbstractHashedMap.HashEntry next,
int hashCode,
java.lang.Object key,
java.lang.Object value)
| Method Detail |
public java.lang.Object getKey()
KeyValue
getKey in interface java.util.Map.Entrypublic java.lang.Object getValue()
KeyValue
getValue in interface java.util.Map.Entrypublic java.lang.Object setValue(java.lang.Object value)
setValue in interface java.util.Map.Entrypublic boolean equals(java.lang.Object obj)
equals in interface java.util.Map.Entrypublic int hashCode()
hashCode in interface java.util.Map.Entrypublic java.lang.String toString()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||