public class AddressByDateSorter extends Object implements Comparator<AddressBean>, Serializable
| Constructor and Description |
|---|
AddressByDateSorter()Default constructor. |
| Modifier and Type | Method and Description |
|---|---|
int | compare(AddressBean a,
AddressBean b)Compare two AddressBeans by added date, newest first, then alphabetically by display name. |
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(AddressBean a, AddressBean b)
compare in interface Comparator<AddressBean>a - the first AddressBeanb - the second AddressBean