org.apache.commons.collections
Class DefaultMapEntry
java.lang.Object
|
+--org.apache.commons.collections.DefaultMapEntry
- All Implemented Interfaces:
- Map.Entry
- Direct Known Subclasses:
- BeanMap.MyMapEntry
- public class DefaultMapEntry
- extends Object
- implements Map.Entry
A default implementation of Map.Entry
- Author:
- James Strachan, Michael A. Smith
DefaultMapEntry
public DefaultMapEntry()
DefaultMapEntry
public DefaultMapEntry(Object key,
Object value)
equals
public boolean equals(Object o)
- Implemented per API documentation of
Map.Entry.equals(Object)
- Specified by:
equals
in interface Map.Entry
- Overrides:
equals
in class Object
getKey
public Object getKey()
- Specified by:
getKey
in interface Map.Entry
getValue
public Object getValue()
- Specified by:
getValue
in interface Map.Entry
hashCode
public int hashCode()
- Implemented per API documentation of
Map.Entry.hashCode()
- Specified by:
hashCode
in interface Map.Entry
- Overrides:
hashCode
in class Object
setKey
public void setKey(Object key)
setValue
public Object setValue(Object value)
- Note that this method only sets the local reference inside this object and
does not modify the original Map.
- Specified by:
setValue
in interface Map.Entry
- Parameters:
value
- the new value- Returns:
- the old value of the value
Copyright © 2001 Apache Software Foundation. Documenation generated April 2 2002.