edu.emory.mathcs.backport.java.util
public static class AbstractMap.SimpleEntry extends Object implements Entry
Since: 1.6
Constructor Summary | |
---|---|
SimpleEntry(Object key, Object value)
Creates an entry representing a mapping from the specified
key to the specified value.
| |
SimpleEntry(Entry entry)
Creates an entry representing the same mapping as the
specified entry.
|
Method Summary | |
---|---|
boolean | equals(Object o) |
Object | getKey()
Returns the key corresponding to this entry.
|
Object | getValue()
Returns the value corresponding to this entry.
|
int | hashCode() |
Object | setValue(Object value)
Replaces the value corresponding to this entry with the specified
value.
|
String | toString()
Returns a String representation of this map entry. |
Parameters: key the key represented by this entry value the value represented by this entry
Parameters: entry the entry to copy
Returns: the key corresponding to this entry
Returns: the value corresponding to this entry
Parameters: value new value to be stored in this entry
Returns: the old value corresponding to the entry
Returns: a String representation of this map entry