Package com.tangosol.net.cache
Class SimpleOverflowMap.HashcodeComparator
- java.lang.Object
-
- com.tangosol.net.cache.SimpleOverflowMap.HashcodeComparator
-
- All Implemented Interfaces:
Comparator
- Enclosing class:
- SimpleOverflowMap
protected static class SimpleOverflowMap.HashcodeComparator extends Object implements Comparator
A stateless Comparator that comparesObject.hashCode()
values.
-
-
Field Summary
Fields Modifier and Type Field Description static SimpleOverflowMap.HashcodeComparator
INSTANCE
-
Constructor Summary
Constructors Modifier Constructor Description protected
HashcodeComparator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
compare(Object o1, Object o2)
boolean
equals(Object obj)
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.util.Comparator
reversed, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
-
-
-
-
Field Detail
-
INSTANCE
public static final SimpleOverflowMap.HashcodeComparator INSTANCE
-
-
Method Detail
-
compare
public int compare(Object o1, Object o2)
- Specified by:
compare
in interfaceComparator
-
equals
public boolean equals(Object obj)
- Specified by:
equals
in interfaceComparator
- Overrides:
equals
in classObject
-
-