MCPcopy
hub / github.com/google/guava / replace

Method replace

guava/src/com/google/common/cache/LocalCache.java:4285–4295  ·  guava/src/com/google/common/cache/LocalCache.java::LocalCache.replace
(K key, @Nullable V oldValue, V newValue)

Source from the content-addressed store, hash-verified

4283 }
4284
4285 @CanIgnoreReturnValue
4286 @Override
4287 public boolean replace(K key, @Nullable V oldValue, V newValue) {
4288 checkNotNull(key);
4289 checkNotNull(newValue);
4290 if (oldValue == null) {
4291 return false;
4292 }
4293 int hash = hash(key);
4294 return segmentFor(hash).replace(key, hash, oldValue, newValue);
4295 }
4296
4297 @CanIgnoreReturnValue
4298 @Override

Callers 5

getClassNameMethod · 0.45
convertMethod · 0.45
getBaseUrlMethod · 0.45
replaceFromMethod · 0.45
fpPatternMethod · 0.45

Calls 3

hashMethod · 0.95
segmentForMethod · 0.95
checkNotNullMethod · 0.45

Tested by

no test coverage detected