- Type Parameters:
K- type of the key
V- type of the value
- All Superinterfaces:
- 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 MapEvictionPolicyComparator<K,V> extends EvictionPolicyComparator<K,V,EntryView<K,V>>
EntryViews to be evicted. Implementors of the comparator have to implement
hashCodemethods to support correct config comparison.
Compares the given
EntryViewinstances and returns the result. The result should be one of
- -1: first entry has higher priority to be evicted
- 1: second entry has higher priority to be evicted
- 0: both entries have same priority