edu.emory.mathcs.backport.java.util
public static class AbstractMap.SimpleImmutableEntry extends Object implements Entry
Since: 1.6
| Constructor Summary | |
|---|---|
| SimpleImmutableEntry(Object key, Object value)
Creates an entry representing a mapping from the specified
key to the specified value.
| |
| SimpleImmutableEntry(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 (optional operation). |
| 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: (Does not return)
Throws: UnsupportedOperationException always
Returns: a String representation of this map entry