replace method

void replace (K key, V value)

Replaces any existing associations(s) involving key and value.

If an association involving key or value exists in the map, it is removed.

Implementation

void replace(K key, V value);