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

Method containsKey

output/java_guava/1.4.16/LocalCache.java:2871–2885  ·  view source on GitHub ↗
(Object key, int hash)

Source from the content-addressed store, hash-verified

2869 }
2870
2871 boolean containsKey(Object key, int hash) {
2872 try {
2873 if (count != 0) { // read-volatile
2874 long now = map.ticker.read();
2875 ReferenceEntry<K, V> e = getLiveEntry(key, hash, now);
2876 if (e == null) {
2877 return false;
2878 }
2879 return e.getValueReference().get() != null;
2880 }
2881 return false;
2882 } finally {
2883 postReadCleanup();
2884 }
2885 }
2886
2887 /**
2888 * This method is a convenience for testing. Code should call {@link LocalCache#containsValue}

Callers

nothing calls this directly

Calls 5

getLiveEntryMethod · 0.95
postReadCleanupMethod · 0.95
getMethod · 0.65
getValueReferenceMethod · 0.65
readMethod · 0.45

Tested by

no test coverage detected