java.lang.Object
i2p.susi.webmail.Sorters.SorterBase
i2p.susi.webmail.Sorters.ToSorter
- All Implemented Interfaces:
Serializable, Comparator<String>
- Enclosing class:
Sorters
Sorts Mail objects by recipient fields.
- See Also:
Field Summary
FieldsConstructor Summary
Method 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
collator
Locale-aware string collator.
Constructor Details
ToSorter
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