MCPcopy Create free account
hub / github.com/antlr/codebuff / replace

Method replace

corpus/java/training/guava/cache/LocalCache.java:4300–4309  ·  view source on GitHub ↗
(K key, @Nullable V oldValue, V newValue)

Source from the content-addressed store, hash-verified

4298 }
4299
4300 @Override
4301 public boolean replace(K key, @Nullable V oldValue, V newValue) {
4302 checkNotNull(key);
4303 checkNotNull(newValue);
4304 if (oldValue == null) {
4305 return false;
4306 }
4307 int hash = hash(key);
4308 return segmentFor(hash).replace(key, hash, oldValue, newValue);
4309 }
4310
4311 @Override
4312 public V replace(K key, V value) {

Callers 11

getClassNameMethod · 0.45
convertMethod · 0.45
getBaseUrlMethod · 0.45
replaceFromMethod · 0.45
getEdgeLabelMethod · 0.45
getOutputFileMethod · 0.45
infoMethod · 0.45
errorMethod · 0.45
warningMethod · 0.45
panicMethod · 0.45

Calls 3

hashMethod · 0.95
segmentForMethod · 0.95
checkNotNullMethod · 0.45

Tested by

no test coverage detected