org.apache.commons.collections
Class DefaultMapEntry

java.lang.Object
  |
  +--org.apache.commons.collections.DefaultMapEntry
All Implemented Interfaces:
Map.Entry

public class DefaultMapEntry
extends Object
implements Map.Entry

A default implementation of Map.Entry

Author:
James Strachan

Constructor Summary
DefaultMapEntry()
           
DefaultMapEntry(Object key, Object value)
           
 
Method Summary
 boolean equals(DefaultMapEntry that)
           
 boolean equals(Object o)
           
 Object getKey()
           
 Object getValue()
           
 int hashCode()
           
 void setKey(Object key)
           
 Object setValue(Object value)
          Note that this method only sets the local reference inside this object and does not modify the original Map.
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultMapEntry

public DefaultMapEntry()

DefaultMapEntry

public DefaultMapEntry(Object key,
                       Object value)
Method Detail

equals

public boolean equals(DefaultMapEntry that)

equals

public boolean equals(Object o)
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()
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 July 14 2001.