public class ListComparator extends Object implements Comparator
| Constructor and Description |
|---|
ListComparator() |
| Modifier and Type | Method and Description |
|---|---|
int |
compare(Object object1,
Object object2)
Compares its two arguments for order.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcomparing, comparing, comparingDouble, comparingInt, comparingLong, equals, naturalOrder, nullsFirst, nullsLast, reversed, reverseOrder, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLongpublic int compare(Object object1, Object object2)
If the specified objects have a getText method,
use the result of that for comparison. If not use the
toString method.
compare in interface Comparatorobject1 - The first object to be compared.object2 - The second object to be compared.getValue(java.lang.Object)