T - the generic typepublic class HashCodeComparator<T>
extends java.lang.Object
implements java.util.Comparator<T>, java.io.Serializable
| Constructor and Description |
|---|
HashCodeComparator() |
| Modifier and Type | Method and Description |
|---|---|
int |
compare(T object,
T compareWithObject)
Compare two Objects by the hashcode.
|
public int compare(T object, T compareWithObject)
compare in interface java.util.Comparator<T>object - One Object.compareWithObject - The other Object to compare.Comparator.compare(Object, Object)