Class Sorters.ToSorter

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

public static class Sorters.ToSorter extends Object
sorts Mail objects by to: fields
Since:
0.9.43
See Also:
  • Constructor Details

    • ToSorter

      public ToSorter(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>