Class Sorters.SenderSorter

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

public static class Sorters.SenderSorter extends Object
sorts Mail objects by sender field
Author:
susi
See Also:
  • Constructor Details

    • SenderSorter

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