replace abstract method

void replace(
  1. K key,
  2. 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);