public class DateComparator extends java.lang.Object implements java.util.Comparator<MailHeader>, java.io.Serializable
Constructor and Description |
---|
DateComparator() |
Modifier and Type | Method and Description |
---|---|
int |
compare(MailHeader o1,
MailHeader o2)
Sorting method : by the date in the header
|
public int compare(MailHeader o1, MailHeader o2)
compare
in interface java.util.Comparator<MailHeader>
o1
- first mailo2
- second mailMailDate.compareTo(MailDate)
)