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