java.lang.Object
i2p.susi.webmail.Sorters.SorterBase
- All Implemented Interfaces:
Serializable, Comparator<String>
- Direct Known Subclasses:
Sorters.DateSorter, Sorters.SenderSorter, Sorters.SizeSorter, Sorters.SubjectSorter, Sorters.ToSorter
- Enclosing class:
Sorters
private abstract static class Sorters.SorterBaseextends Object implements Comparator<String>, Serializable
Base for the various sorters.
Field Summary
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedSorterBase(MailCache mailCache) Mail cache for fetching mail objects to compare.Method Summary
Methods 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
mailCache
Mail cache to fetch mail objects from.
Constructor Details
SorterBase
Mail cache for fetching mail objects to compare.- Parameters:
mailCache- the cache to retrieve Mail objects from
Method Details
compare
Compare two objects.- Specified by:
comparein interfaceComparator<String>
compare
fallbackCompare