K
- type of the keyV
- type of the valuepublic abstract class CacheEvictionPolicyComparator<K,V> extends com.hazelcast.internal.eviction.EvictionPolicyComparator<K,V,CacheEntryView<K,V>>
EvictionPolicyComparator
for comparing
CacheEntryView
s to be evicted.EvictionPolicyComparator
,
CacheEntryView
,
Serialized FormConstructor and Description |
---|
CacheEvictionPolicyComparator() |
Modifier and Type | Method and Description |
---|---|
abstract int |
compare(CacheEntryView<K,V> e1,
CacheEntryView<K,V> e2)
Compares the given
EvictableEntryView instances and returns the result. |
equals, hashCode
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
comparing, comparing, comparingDouble, comparingInt, comparingLong, naturalOrder, nullsFirst, nullsLast, reversed, reverseOrder, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
public abstract int compare(CacheEntryView<K,V> e1, CacheEntryView<K,V> e2)
EvictableEntryView
instances and returns the result.
The result should be one of the
compare
in interface Comparator<CacheEntryView<K,V>>
compare
in class com.hazelcast.internal.eviction.EvictionPolicyComparator<K,V,CacheEntryView<K,V>>
e1
- the first EvictableEntryView
instance to be comparede2
- the second EvictableEntryView
instance to be comparedCopyright © 2018 Hazelcast, Inc.. All rights reserved.