public class AddressComparator extends java.lang.Object implements java.util.Comparator<MailHeader>, java.io.Serializable
Constructor and Description |
---|
AddressComparator() |
Modifier and Type | Method and Description |
---|---|
int |
compare(MailHeader o1,
MailHeader o2)
Sorting method : by the source email address
|
public int compare(MailHeader o1, MailHeader o2)
compare
in interface java.util.Comparator<MailHeader>
o1
- first mailo2
- second mail