K
- type of the keyV
- type of the value@FunctionalInterface public interface CacheEvictionPolicyComparator<K,V> extends EvictionPolicyComparator<K,V,CacheEntryView<K,V>>
ICache
specific EvictionPolicyComparator
for comparing CacheEntryView
s to be evicted.
Implementors of the comparator have to implement equals
and hashCode
methods
to support correct config comparison.EvictionPolicyComparator
,
CacheEntryView
Modifier and Type | Method and Description |
---|---|
int |
compare(CacheEntryView<K,V> o1,
CacheEntryView<K,V> o2)
Compares the given
CacheEntryView instances and
returns the result. |
comparing, comparing, comparingDouble, comparingInt, comparingLong, equals, naturalOrder, nullsFirst, nullsLast, reversed, reverseOrder, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
int compare(CacheEntryView<K,V> o1, CacheEntryView<K,V> o2)
CacheEntryView
instances and
returns the result. The result should be one of
compare
in interface Comparator<CacheEntryView<K,V>>
o1
- the first CacheEntryView
instance to be comparedo2
- the second CacheEntryView
instance to be comparedCopyright © 2023 Hazelcast, Inc.. All rights reserved.