|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.compass.core.util.backport.java.util.AbstractMap.SimpleImmutableEntry
public static class AbstractMap.SimpleImmutableEntry
An Entry maintaining an immutable key and value, This class does not support method setValue. This class may be convenient in methods that return thread-safe snapshots of key-value mappings.
| Constructor Summary | |
|---|---|
AbstractMap.SimpleImmutableEntry(Map.Entry entry)
Creates an entry representing the same mapping as the specified entry. |
|
AbstractMap.SimpleImmutableEntry(Object key,
Object value)
Creates an entry representing a mapping from the specified key to the specified value. |
|
| 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. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public AbstractMap.SimpleImmutableEntry(Object key,
Object value)
key - the key represented by this entryvalue - the value represented by this entrypublic AbstractMap.SimpleImmutableEntry(Map.Entry entry)
entry - the entry to copy| Method Detail |
|---|
public Object getKey()
getKey in interface Map.Entrypublic Object getValue()
getValue in interface Map.Entrypublic Object setValue(Object value)
setValue in interface Map.Entryvalue - new value to be stored in this entry
UnsupportedOperationException - alwayspublic boolean equals(Object o)
equals in interface Map.Entryequals in class Objectpublic int hashCode()
hashCode in interface Map.EntryhashCode in class Objectpublic String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||