This method is a convenience for testing. Code should call {@link Segment#getLiveValue} instead.
(ReferenceEntry<K, V> entry, long now)
| 1746 | * instead. |
| 1747 | */ |
| 1748 | @VisibleForTesting |
| 1749 | boolean isLive(ReferenceEntry<K, V> entry, long now) { |
| 1750 | return segmentFor(entry.getHash()).getLiveValue(entry, now) != null; |
| 1751 | } |
| 1752 | |
| 1753 | /** |
| 1754 | * Returns the segment that should be used for a key with the given hash. |