java.lang.Object
i2p.susi.webmail.Sorters.SorterBase
i2p.susi.webmail.Sorters.SizeSorter
All Implemented Interfaces:
Serializable, Comparator<String>
Enclosing class:
Sorters

public static class Sorters.SizeSorterextends Sorters.SorterBase
Sorts Mail objects by message size.
See Also:
  • Constructor Details

    • SizeSorter

      public SizeSorter(MailCache mailCache)
      Sorts by message size.
      Parameters:
      mailCache - the mail cache
  • Method Details

    • compare

      protected int compare(Mail a, Mail b)
      Compare two objects.
      Specified by:
      compare in class Sorters.SorterBase
      Parameters:
      a - the mail on the left of the comparison
      b - the mail on the right of the comparison
      Returns:
      negative, zero or positive as the left mail sorts before or after the right