T - if this implementation is used, T must be a sub class of java.util.Datepublic class DateDescendingComparator<T extends java.util.Date> extends DateComparator<T>
Comparator which compares two
Date objects in the descending order.
It is the reverse comparator of DateComparator.
Note: because it's a descending comparator, it behaves in the opposite
way of what Comparator says.Comparator,
DateComparator| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
REVISION |
| Constructor and Description |
|---|
DateDescendingComparator() |
| Modifier and Type | Method and Description |
|---|---|
int |
compare(T d1,
T d2) |
static int |
compareDate(java.util.Date d1,
java.util.Date d2)
Compares two Dates in descending order.
|
public static final java.lang.String REVISION
public int compare(T d1, T d2)
compare in interface java.util.Comparator<T extends java.util.Date>compare in class DateComparator<T extends java.util.Date>public static int compareDate(java.util.Date d1,
java.util.Date d2)
d1 - the first date to compared2 - the second date to compareDateComparator.compareDate(Date, Date)Copyright © 2001-2017 Jalios SA. All Rights Reserved.