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, waitcomparing, comparing, comparingDouble, comparingInt, comparingLong, equals, naturalOrder, nullsFirst, nullsLast, reversed, reverseOrder, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLongpublic static DateComparator getDateComparator(Format dateFormat)
public int compare(Date o1, Date o2)
compare in interface Comparator<Date>