Queries the map with the given key and updates its associated value
with the given producer, but only if the key is present in the map.
The map and its entries are unchanged, if the key is not present.
Returns true if and only if the key is present in the map,
implying that its associated value was updated.
Queries the map with the given key and updates its associated value with the given producer, but only if the key is present in the map. The map and its entries are unchanged, if the key is not present.
Returns
true
if and only if the key is present in the map, implying that its associated value was updated.