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

Method replace

output/java_guava/1.4.13/LocalCache.java:4244–4253  ·  view source on GitHub ↗
(K key, @Nullable V oldValue, V newValue)

Source from the content-addressed store, hash-verified

4242 }
4243
4244 @Override
4245 public boolean replace(K key, @Nullable V oldValue, V newValue) {
4246 checkNotNull(key);
4247 checkNotNull(newValue);
4248 if (oldValue == null) {
4249 return false;
4250 }
4251 int hash = hash(key);
4252 return segmentFor(hash).replace(key, hash, oldValue, newValue);
4253 }
4254
4255 @Override
4256 public V replace(K key, V value) {

Callers 4

convertMethod · 0.45
getBaseUrlMethod · 0.45
replaceFromMethod · 0.45

Calls 3

hashMethod · 0.65
checkNotNullMethod · 0.45
segmentForMethod · 0.45

Tested by

no test coverage detected