K
- type of the keyV
- type of the value@FunctionalInterface public interface MapEvictionPolicyComparator<K,V> extends EvictionPolicyComparator<K,V,EntryView<K,V>>
IMap
specific EvictionPolicyComparator
for
comparing EntryView
s to be evicted.
Implementors of the comparator have to implement equals
and hashCode
methods to support correct config comparison.
Note that you may need to enable per entry stats via
MapConfig.setPerEntryStatsEnabled(boolean)
to see
all fields of entry view in your implementation.Modifier and Type | Method and Description |
---|---|
int |
compare(EntryView<K,V> o1,
EntryView<K,V> o2)
Compares the given
EntryView instances and
returns the result. |
comparing, comparing, comparingDouble, comparingInt, comparingLong, equals, naturalOrder, nullsFirst, nullsLast, reversed, reverseOrder, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
Copyright © 2022 Hazelcast, Inc.. All rights reserved.