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 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:
        true if the entry key can be evicted, otherwise false.