Class Overview
A java.util.Map.Entry Map.Entry that throws
UnsupportedOperationException when setValue
is called.
Public Constructors
public
UnmodifiableMapEntry
(Object key, Object value)
Constructs a new entry with the specified key and given value.
Parameters
key
| the key for the entry, may be null |
value
| the value for the entry, may be null
|
public
UnmodifiableMapEntry
(KeyValue pair)
Constructs a new entry from the specified KeyValue
.
Parameters
pair
| the pair to copy, must not be null |
public
UnmodifiableMapEntry
(Entry entry)
Constructs a new entry from the specified Map.Entry
.
Parameters
entry
| the entry to copy, must not be null |
Public Methods
public
Object
setValue
(Object value)
Throws UnsupportedOperationException.