MCPcopy
hub / github.com/google/guava / containsKey

Method containsKey

guava/src/com/google/common/cache/LocalCache.java:4157–4165  ·  guava/src/com/google/common/cache/LocalCache.java::LocalCache.containsKey
(@Nullable Object key)

Source from the content-addressed store, hash-verified

4155 }
4156
4157 @Override
4158 public boolean containsKey(@Nullable Object key) {
4159 class="cm">// does not impact recency ordering
4160 if (key == null) {
4161 return false;
4162 }
4163 int hash = hash(key);
4164 return segmentFor(hash).containsKey(key, hash);
4165 }
4166
4167 @Override
4168 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