(Object key, int hash, long now)
| 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, |
no test coverage detected