Returns an immutable map, mapping only the specified key to the specified value. The returned map is serializable.
<K> | the class of the map keys | |
<V> | the class of the map values | |
key | the sole key to be stored in the returned map. | |
value | the value to which the returned map maps key . |
Diagram: Collections