public class DefaultMapEntry
extends java.lang.Object
implements java.util.Map.Entry
Map.Entry| Constructor and Description |
|---|
DefaultMapEntry()
Constructs a new
DefaultMapEntry with a null key
and null value. |
DefaultMapEntry(java.lang.Object key,
java.lang.Object value)
Constructs a new
DefaultMapEntry with the given
key and given value. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object o)
Implemented per API documentation of
Map.Entry.equals(Object) |
java.lang.Object |
getKey()
Returns the key.
|
java.lang.Object |
getValue()
Returns the value.
|
int |
hashCode()
Implemented per API documentation of
Map.Entry.hashCode() |
void |
setKey(java.lang.Object key)
Sets the key.
|
java.lang.Object |
setValue(java.lang.Object value)
Note that this method only sets the local reference inside this object and
does not modify the original Map.
|
public DefaultMapEntry()
DefaultMapEntry with a null key
and null value.public DefaultMapEntry(java.lang.Object key,
java.lang.Object value)
DefaultMapEntry with the given
key and given value.key - the key for the entry, may be nullvalue - the value for the entyr, may be nullpublic boolean equals(java.lang.Object o)
Map.Entry.equals(Object)equals in interface java.util.Map.Entryequals in class java.lang.Objectpublic java.lang.Object getKey()
getKey in interface java.util.Map.Entrypublic java.lang.Object getValue()
getValue in interface java.util.Map.Entrypublic int hashCode()
Map.Entry.hashCode()hashCode in interface java.util.Map.EntryhashCode in class java.lang.Objectpublic void setKey(java.lang.Object key)
key - the new keypublic java.lang.Object setValue(java.lang.Object value)
setValue in interface java.util.Map.Entryvalue - the new valueCopyright © 2001-2004 Apache Software Foundation. Documenation generated April 29 2013.