org.apache.commons.collections.map
Class AbstractHashedMap.HashEntry
java.lang.Object
|
+--org.apache.commons.collections.map.AbstractHashedMap.HashEntry
- All Implemented Interfaces:
- KeyValue, Map.Entry
- Direct Known Subclasses:
- AbstractLinkedMap.LinkEntry, IdentityMap.IdentityEntry
- Enclosing class:
- AbstractHashedMap
- protected static class AbstractHashedMap.HashEntry
- extends Object
- implements Map.Entry, KeyValue
HashEntry used to store the data
next
protected AbstractHashedMap.HashEntry next
- The next entry in the hash chain
hashCode
protected int hashCode
- The hash code of the key
key
protected Object key
- The key
value
protected Object value
- The value
AbstractHashedMap.HashEntry
protected AbstractHashedMap.HashEntry(AbstractHashedMap.HashEntry next,
int hashCode,
Object key,
Object value)
getKey
public Object getKey()
- Description copied from interface:
KeyValue
- Gets the key from the pair.
- Specified by:
getKey
in interface Map.Entry
- Following copied from interface:
org.apache.commons.collections.KeyValue
- Returns:
- the key
getValue
public Object getValue()
- Description copied from interface:
KeyValue
- Gets the value from the pair.
- Specified by:
getValue
in interface Map.Entry
- Following copied from interface:
org.apache.commons.collections.KeyValue
- Returns:
- the value
setValue
public Object setValue(Object value)
- Specified by:
setValue
in interface Map.Entry
equals
public boolean equals(Object obj)
- Specified by:
equals
in interface Map.Entry
- Overrides:
equals
in class Object
hashCode
public int hashCode()
- Specified by:
hashCode
in interface Map.Entry
- Overrides:
hashCode
in class Object
toString
public String toString()
- Overrides:
toString
in class Object
Copyright © 2001-2004 Apache Software Foundation. All Rights Reserved.