|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.jalios.util.DateComparator<T>
T - With the main implementation, T must be a sub class of java.util.Datepublic class DateComparator<T>
This class implements a Comparator which compares two
Date objects in the ascending order.
Comparator| Field Summary | |
|---|---|
static java.lang.String |
REVISION
|
| Constructor Summary | |
|---|---|
DateComparator()
|
|
| Method Summary | |
|---|---|
int |
compare(T o1,
T o2)
|
static int |
compareDate(java.util.Date d1,
java.util.Date d2)
Compares two Dates in ascending 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 |
| Field Detail |
|---|
public static final java.lang.String REVISION
| Constructor Detail |
|---|
public DateComparator()
| Method Detail |
|---|
public int compare(T o1,
T o2)
compare in interface java.util.Comparator<T>
public static int compareDate(java.util.Date d1,
java.util.Date d2)
d1 - the first dated2 - the second date
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||