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

Method isLive

output/java_guava/1.4.13/LocalCache.java:1932–1935  ·  view source on GitHub ↗

This method is a convenience for testing. Code should call Segment#getLiveValue instead.

(ReferenceEntry<K, V> entry, long now)

Source from the content-addressed store, hash-verified

1930 */
1931
1932 @VisibleForTesting
1933 boolean isLive(ReferenceEntry<K, V> entry, long now) {
1934 return segmentFor(entry.getHash()).getLiveValue(entry, now) != null;
1935 }
1936
1937 /**
1938 * Returns the segment that should be used for a key with the given hash.

Callers

nothing calls this directly

Calls 3

getHashMethod · 0.65
getLiveValueMethod · 0.45
segmentForMethod · 0.45

Tested by

no test coverage detected