Package i2p.susi.webmail
Class Sorters.SizeSorter
java.lang.Object
i2p.susi.webmail.Sorters.SizeSorter
- All Implemented Interfaces:
Serializable
,Comparator<String>
- Enclosing class:
- Sorters
public static class Sorters.SizeSorter extends Object
sorts Mail objects by message size
- Author:
- susi
- See Also:
- Serialized Form
-
Constructor Summary
Constructors Constructor Description SizeSorter(MailCache mailCache)
-
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.util.Comparator
equals, reversed, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
-
Constructor Details
-
Method Details
-
compare
- Parameters:
a
- non-nullb
- non-null
-
compare
Gets mail from the cache, checks for null, then compares- Specified by:
compare
in interfaceComparator<String>
-