If the specified key is not already associated with a value or is associated with null, associates it with the given non-null value; otherwise replaces the associated value with the results of the remapping function, or removes if the result is null.
(K key, V value,
BiFunction<? super V, ? super V, ? extends V> remappingFunction)
| 419 | * remapping function, or removes if the result is {@code null}. |
| 420 | */ |
| 421 | default V merge(K key, V value, |
| 422 | BiFunction<? super V, ? super V, ? extends V> remappingFunction) { |
| 423 | if (remappingFunction == null || value == null) { |
| 424 | throw new NullPointerException(); |
no outgoing calls