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