java.lang.Object
i2p.susi.webmail.Sorters.SorterBase
i2p.susi.webmail.Sorters.DateSorter
- All Implemented Interfaces:
Serializable, Comparator<String>
- Enclosing class:
Sorters
Sorts Mail objects by date field.
- See Also:
Constructor Summary
ConstructorsMethod Summary
Methods inherited from class Sorters.SorterBase
compareMethods inherited from class Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface Comparator
equals, max, min, reversed, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
Constructor Details
DateSorter
Method Details
compare
Compare two objects.- Specified by:
comparein classSorters.SorterBase- Parameters:
a- the mail on the left of the comparisonb- the mail on the right of the comparison- Returns:
- negative, zero or positive as the left mail sorts before or after the right
scompare