de.innovationgate.utils
public class ObjectComparator extends java.lang.Object implements java.util.Comparator
Comparator
for any object type.
The comparator compares by the following rules:
Comparable
they are compared based on this
Object.toString()
strings using the collator
Constructor and Description |
---|
ObjectComparator(java.text.Collator collator)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
int |
compare(java.lang.Object arg0,
java.lang.Object arg1) |