Class Sorters.SizeSorter

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

public static class Sorters.SizeSorter extends Object
sorts Mail objects by message size
Author:
susi
See Also:
  • Constructor Details

    • SizeSorter

      public SizeSorter(MailCache mailCache)
  • Method Details

    • compare

      protected int compare(Mail a, Mail b)
      Parameters:
      a - non-null
      b - non-null
    • compare

      public int compare(String arg0, String arg1)
      Gets mail from the cache, checks for null, then compares
      Specified by:
      compare in interface Comparator<String>