Interface LRUCacheEvictionJudge<T>
- Type Parameters:
T
- the type of the cache entry
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Represents a judge predicate (boolean-valued function) that decides if a cache entry can be evicted.
-
Method Summary
Modifier and TypeMethodDescriptionboolean
canEvictEntry
(T entryKey) Evaluates if a cache entry can ben evicted or not.
-
Method Details
-
canEvictEntry
Evaluates if a cache entry can ben evicted or not.- Parameters:
entryKey
- the cache entry key whose eviction is to be tested.- Returns:
true
if the entry key can be evicted, otherwisefalse
.
-