MCPcopy Create free account
hub / github.com/codenameone/CodenameOne / merge

Method merge

vm/JavaAPI/src/java/util/Map.java:421–421  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

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();

Callers 15

refreshThemeMethod · 0.65
mergeStyleMethod · 0.65
animateStyleMethod · 0.65
mergeMethod · 0.65
capture.jsFile · 0.65
oaFunction · 0.65
invoke14Method · 0.65
invoke15Method · 0.65
invoke17Method · 0.65
invoke42Method · 0.65
invoke8Method · 0.65
parseCssTokensMethod · 0.65

Calls

no outgoing calls

Tested by 2

runMethod · 0.52
scrollContentMethod · 0.52