| |
|
| java.lang.Object clime.messadmin.utils.SimpleEntry clime.messadmin.utils.SimpleImmutableEntry
SimpleImmutableEntry | public class SimpleImmutableEntry extends SimpleEntry implements Map.Entry,Serializable(Code) | | 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.
since: 1.6 author: Cédrik LIME |
Method Summary | |
public Object | setValue(Object value) Replaces the value corresponding to this entry with the specified
value (optional operation). |
SimpleImmutableEntry | public SimpleImmutableEntry(Object key, Object value)(Code) | | Creates an entry representing a mapping from the specified
key to the specified value.
Parameters: key - the key represented by this entry Parameters: value - the value represented by this entry |
SimpleImmutableEntry | public SimpleImmutableEntry(Map.Entry entry)(Code) | | Creates an entry representing the same mapping as the
specified entry.
Parameters: entry - the entry to copy |
setValue | public Object setValue(Object value)(Code) | | Replaces the value corresponding to this entry with the specified
value (optional operation). This implementation simply throws
UnsupportedOperationException, as this class implements
an immutable map entry.
Parameters: value - new value to be stored in this entry (Does not return) throws: UnsupportedOperationException - always |
|
|
|