Package de.alpharogroup.comparators
Class HashCodeComparator<T>
- java.lang.Object
-
- de.alpharogroup.comparators.HashCodeComparator<T>
-
- Type Parameters:
T- the generic type
- All Implemented Interfaces:
java.io.Serializable,java.util.Comparator<T>
public class HashCodeComparator<T> extends java.lang.Object implements java.util.Comparator<T>, java.io.SerializableThis class compare two Objects by the hashcode.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description HashCodeComparator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intcompare(T object, T compareWithObject)Compare two Objects by the hashcode.
-
-
-
Method Detail
-
compare
public int compare(T object, T compareWithObject)
Compare two Objects by the hashcode.- Specified by:
comparein interfacejava.util.Comparator<T>- Parameters:
object- One Object.compareWithObject- The other Object to compare.- Returns:
- the result.
- See Also:
Comparator.compare(Object, Object)
-
-