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

Method putIfAbsent

output/java_guava/1.4.19/LocalCache.java:4229–4235  ·  view source on GitHub ↗
(K key, V value)

Source from the content-addressed store, hash-verified

4227 }
4228
4229 @Override
4230 public V putIfAbsent(K key, V value) {
4231 checkNotNull(key);
4232 checkNotNull(value);
4233 int hash = hash(key);
4234 return segmentFor(hash).put(key, hash, value, true);
4235 }
4236
4237 @Override
4238 public void putAll(Map<? extends K, ? extends V> m) {

Callers 7

addMethod · 0.45
setCountMethod · 0.45
internMethod · 0.45
internMethod · 0.45
getOrCreateNodesMethod · 0.45
registerMethod · 0.45
getAtMethod · 0.45

Calls 4

hashMethod · 0.95
segmentForMethod · 0.95
putMethod · 0.65
checkNotNullMethod · 0.45

Tested by

no test coverage detected