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

Method isLive

corpus/java/training/guava/cache/LocalCache.java:1867–1870  ·  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

1865 * instead.
1866 */
1867 @VisibleForTesting
1868 boolean isLive(ReferenceEntry<K, V> entry, long now) {
1869 return segmentFor(entry.getHash()).getLiveValue(entry, now) != null;
1870 }
1871
1872 /**
1873 * Returns the segment that should be used for a key with the given hash.

Callers

nothing calls this directly

Calls 3

segmentForMethod · 0.95
getHashMethod · 0.65
getLiveValueMethod · 0.45

Tested by

no test coverage detected