Class Publication.AdateComparator<T extends Publication>

  • Type Parameters:
    T - a type of Publication
    All Implemented Interfaces:
    java.util.Comparator<T>
    Enclosing class:
    Publication

    public static class Publication.AdateComparator<T extends Publication>
    extends BasicStorable.CdateComparator<T>
    Compares two Publications using their Adate in descending order (newest date first). Default to Cdate Comparison if the 2 Adate are the equals. Note: this comparator imposes orderings that are inconsistent with equals.
    Since:
    jcms-5.1.1
    See Also:
    BasicStorable.CdateComparator
    • Constructor Summary

      Constructors 
      Constructor Description
      AdateComparator()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int compare​(T p1, T p2)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface java.util.Comparator

        equals, reversed, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong