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

Method replace

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

Source from the content-addressed store, hash-verified

4262 }
4263
4264 @Override
4265 public boolean replace(K key, @Nullable V oldValue, V newValue) {
4266 checkNotNull(key);
4267 checkNotNull(newValue);
4268 if (oldValue == null) {
4269 return false;
4270 }
4271
4272 int hash = hash(key);
4273 return segmentFor(hash).replace(key, hash, oldValue, newValue);
4274 }
4275
4276 @Override
4277 public V replace(K key, V value) {

Callers 6

addMethod · 0.45
setCountMethod · 0.45
convertMethod · 0.45
getBaseUrlMethod · 0.45
getClassNameMethod · 0.45
replaceFromMethod · 0.45

Calls 3

hashMethod · 0.95
segmentForMethod · 0.95
checkNotNullMethod · 0.45

Tested by

no test coverage detected