java.lang.Object | +--org.apache.commons.collections.DefaultMapEntryAll Implemented Interfaces:
Constructs a new DefaultMapEntry with a null key and null value. |
DefaultMapEntry(Map.Entry entry) Constructs a new DefaultMapEntry with the given key and given value. |
DefaultMapEntry(Object key, Object value) Constructs a new DefaultMapEntry with the given key and given value. |
boolean | equals(Object obj) Compares this Map Entry with another Map Entry. |
Object | getKey() Gets the key from the Map Entry. |
Object | getValue() Gets the value from the Map Entry. |
int | hashCode() Gets a hashCode compatible with the equals method. |
void | setKey(Object key) Sets the key stored in this Map Entry. |
Object | setValue(Object value) Sets the value stored in this Map Entry. |
String | toString() Written to match the output of the Map.Entry's used in a java.util.HashMap. |
public DefaultMapEntry()
DefaultMapEntry
with a null key
and null value.
public DefaultMapEntry(Map.Entry entry)
DefaultMapEntry
with the given
key and given value.
- if the entry is nullpublic DefaultMapEntry(Object key, Object value)
DefaultMapEntry
with the given
key and given value.
public boolean equals(Object obj)
public Object getKey()
public Object getValue()
public int hashCode()
public void setKey(Object key)
public Object setValue(Object value)
public String toString()