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

Method put

output/java_guava/1.4.18/LocalCache.java:4221–4227  ·  view source on GitHub ↗
(K key, V value)

Source from the content-addressed store, hash-verified

4219 }
4220
4221 @Override
4222 public V put(K key, V value) {
4223 checkNotNull(key);
4224 checkNotNull(value);
4225 int hash = hash(key);
4226 return segmentFor(hash).put(key, hash, value, false);
4227 }
4228
4229 @Override
4230 public V putIfAbsent(K key, V value) {

Callers 2

loadAllMethod · 0.95
putAllMethod · 0.95

Calls 4

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

Tested by

no test coverage detected