Class Sorters.DateSorter

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

public static class Sorters.DateSorter
extends Object
sorts Mail objects by date field
Author:
susi
See Also:
Serialized Form
  • Constructor Details

  • Method Details

    • compare

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

      public static int scompare​(Mail a, Mail b)
      Use as fallback in other sorters
      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>