Replaces the entry for the specified key only if currently mapped to the specified value.
(K key, V oldValue, V newValue)
| 301 | * the specified value. |
| 302 | */ |
| 303 | default boolean replace(K key, V oldValue, V newValue) { |
| 304 | Object curr = get(key); |
| 305 | if (curr == null ? oldValue != null : !curr.equals(oldValue)) { |
| 306 | return false; |
no outgoing calls