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

Method replace

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

Replaces the entry for the specified key only if currently mapped to the specified value.

(K key, V oldValue, V newValue)

Source from the content-addressed store, hash-verified

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;

Callers 15

toVttMethod · 0.65
normalizeCaptionTextMethod · 0.65
downloadImageMethod · 0.65
setAdMethod · 0.65
setHeaderMethod · 0.65
otpauthUriMethod · 0.65
getCacheFileNameMethod · 0.65
setTitleComponentMethod · 0.65
replaceMethod · 0.65
setTitleComponentMethod · 0.65
setTitleMethod · 0.65
replaceUntilReadyMethod · 0.65

Calls

no outgoing calls

Tested by 15

trimMethod · 0.52
invoke3Method · 0.52
buildGeneratedProjectMethod · 0.52
runOtpAuthUriMethod · 0.52
runTestMethod · 0.52
scanPublicClassesMethod · 0.52
scanDirectoryMethod · 0.52
quoteJsMethod · 0.52
extractSnippetMethod · 0.52
quoteJsMethod · 0.52