Class BasicStorable.CdateComparator<T extends Storable>

    • Constructor Summary

      Constructor Description
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int compare​(T s1, T s2)  
      static int compareDate​(java.util.Date d1, java.util.Date d2)
      Compares two Dates in descending order.
      • 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
    • Constructor Detail

      • CdateComparator

        public CdateComparator()
    • Method Detail

      • compare

        public int compare​(T s1,
                           T s2)
        Specified by:
        compare in interface java.util.Comparator<T extends Storable>
      • compareDate

        public static int compareDate​(java.util.Date d1,
                                      java.util.Date d2)
        Compares two Dates in descending order.
        d1 - the first date to compare
        d2 - the second date to compare
        -1, 0 or 1 if d1 is greater than, equals or lower than d2
        See Also:
        DateComparator.compareDate(Date, Date)