Interface MapEntry<K,V>
- Type Parameters:
K- key typeV- value type
- All Superinterfaces:
Map.Entry<K,,V> Serializable
- All Known Implementing Classes:
MapEntry.SimpleMapEntry
An immutable map entry. This implementation differs from
Map.entry(Object, Object) in the following ways:
- Supports null key or value
- Supports mapping operation
- Author:
- Paul Ferraro
-
Nested Class Summary
Nested Classes -
Method Summary
-
Method Details
-
map
Returns a new map entry whose key/value are generated by applying the specified mapping functions.- Type Parameters:
KK- the mapped key typeVV- the mapped value type- Parameters:
keyMapper- a key mappervalueMapper- a value mapper- Returns:
- a new map entry
-
setValue
-
of
Returns a new immutable map entry from the specified key and value.- Type Parameters:
K- the key typeV- the value type- Parameters:
key- the map entry keyvalue- the map entry value- Returns:
- a new map entry
-