org.apache.commons.collections.map
Class AbstractHashedMap.HashEntry
java.lang.Object
org.apache.commons.collections.map.AbstractHashedMap.HashEntry
- AbstractHashedMap
- Map.Entry, KeyValue
protected static class AbstractHashedMap.HashEntry
extends java.lang.Object
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.
hashCode
protected int hashCode
The hash code of the key
key
protected Object key
The key
value
protected Object value
The value
equals
public boolean equals(Object obj)
getKey
public Object getKey()
Gets the key from the pair.
- getKey in interface KeyValue
getValue
public Object getValue()
Gets the value from the pair.
- getValue in interface KeyValue
hashCode
public int hashCode()
setValue
public Object setValue(Object value)
toString
public String toString()
Copyright © 2001-2006 Apache Software Foundation. All Rights Reserved.