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

Method put

corpus/java/training/guava/cache/LocalCache.java:4259–4265  ·  view source on GitHub ↗
(K key, V value)

Source from the content-addressed store, hash-verified

4257 }
4258
4259 @Override
4260 public V put(K key, V value) {
4261 checkNotNull(key);
4262 checkNotNull(value);
4263 int hash = hash(key);
4264 return segmentFor(hash).put(key, hash, value, false);
4265 }
4266
4267 @Override
4268 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