replace method

void replace (K key, V value)
override

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) {
  _add(key, value, true);
}