Package i2p.susi.webmail
Class Sorters.DateSorter
java.lang.Object
i2p.susi.webmail.Sorters.DateSorter
- All Implemented Interfaces:
Serializable
,Comparator<String>
- Enclosing class:
Sorters
sorts Mail objects by date field
- Author:
- susi
- See Also:
-
Constructor Summary
-
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
-
DateSorter
-
-
Method Details
-
compare
- Parameters:
a
- non-nullb
- non-null
-
scompare
Use as fallback in other sorters- Parameters:
a
- non-nullb
- non-null
-
compare
Gets mail from the cache, checks for null, then compares- Specified by:
compare
in interfaceComparator<String>
-