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

Method containsKey

corpus/java/training/guava/cache/LocalCache.java:4209–4217  ·  view source on GitHub ↗
(@Nullable Object key)

Source from the content-addressed store, hash-verified

4207 }
4208
4209 @Override
4210 public boolean containsKey(@Nullable Object key) {
4211 // does not impact recency ordering
4212 if (key == null) {
4213 return false;
4214 }
4215 int hash = hash(key);
4216 return segmentFor(hash).containsKey(key, hash);
4217 }
4218
4219 @Override
4220 public boolean containsValue(@Nullable Object value) {

Callers

nothing calls this directly

Calls 3

hashMethod · 0.95
segmentForMethod · 0.95
containsKeyMethod · 0.65

Tested by

no test coverage detected