public abstract class DateComparator extends Object implements Comparator<Date>
Constructor and Description |
---|
DateComparator() |
Modifier and Type | Method and Description |
---|---|
int |
compare(Date o1,
Date o2) |
abstract long |
diff(Date o1,
Date o2) |
static DateComparator |
getDateComparator(Format dateFormat)
Factory constructor, returning an instance suitable for the given format.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
comparing, comparing, comparingDouble, comparingInt, comparingLong, equals, naturalOrder, nullsFirst, nullsLast, reversed, reverseOrder, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
public static DateComparator getDateComparator(Format dateFormat)
public int compare(Date o1, Date o2)
compare
in interface Comparator<Date>