java.lang.Object
i2p.susi.webmail.Sorters.SorterBase
i2p.susi.webmail.Sorters.SubjectSorter
- All Implemented Interfaces:
Serializable, Comparator<String>
- Enclosing class:
Sorters
Sorts Mail objects by subject field.
- See Also:
Field Summary
Constructor Summary
ConstructorsMethod Summary
All MethodsMethods 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
Field Details
xre
Lower-cased "Re:" prefix, stripped when sorting by subjectxfwd
Lower-cased "Fwd:" prefix, stripped when sorting by subjectcollator
Locale-aware string collator.
Constructor Details
SubjectSorter
Sorts by subject field.- Parameters:
mailCache- the mail cache
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