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.
@FunctionalInterface public interface LRUCacheEvictionJudge<T>Represents a judge predicate (boolean-valued function) that decides if a cache entry can be evicted.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleancanEvictEntry(T entryKey)Evaluates if a cache entry can ben evicted or not.
-
-
-
Method Detail
-
canEvictEntry
boolean canEvictEntry(T entryKey)
Evaluates if a cache entry can ben evicted or not.- Parameters:
entryKey- the cache entry key whose eviction is to be tested.- Returns:
trueif the entry key can be evicted, otherwisefalse.
-
-