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

Method getLiveEntry

output/java_guava/1.4.18/LocalCache.java:2815–2825  ·  view source on GitHub ↗
(Object key, int hash, long now)

Source from the content-addressed store, hash-verified

2813 }
2814
2815 @Nullable
2816 ReferenceEntry<K, V> getLiveEntry(Object key, int hash, long now) {
2817 ReferenceEntry<K, V> e = getEntry(key, hash);
2818 if (e == null) {
2819 return null;
2820 } else if (map.isExpired(e, now)) {
2821 tryExpireEntries(now);
2822 return null;
2823 }
2824 return e;
2825 }
2826
2827 /**
2828 * Gets the value from an entry. Returns null if the entry is invalid, partially-collected,

Callers 2

getMethod · 0.95
containsKeyMethod · 0.95

Calls 3

getEntryMethod · 0.95
tryExpireEntriesMethod · 0.95
isExpiredMethod · 0.45

Tested by

no test coverage detected