|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--openfuture.bugbase.model.BugReportDateComparator
| Constructor Summary | |
BugReportDateComparator()
|
|
| Method Summary | |
int |
compare(java.lang.Object o1,
java.lang.Object o2)
Compares two bug reports by
their reported date. |
int |
dateCompare(java.util.Date d1,
java.util.Date d2)
Compare two dates. |
| 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 |
| Constructor Detail |
public BugReportDateComparator()
| Method Detail |
public int compare(java.lang.Object o1,
java.lang.Object o2)
bug reports by
their reported date. If they are equal,
starting date is used for comparison. If these are also equal,
their ID is used.compare in interface java.util.Comparatoro1 - a value of type 'Object'o2 - a value of type 'Object'o1 is smaller, 1 if o1
is greater and 0 of o1 is equal to
o2.
public int dateCompare(java.util.Date d1,
java.util.Date d2)
null is the smallest element
of the order.d1 - a value of type 'Date'd2 - a value of type 'Date'd1 is smaller, 1 if d1
is greater and 0 of d1 is equal to
d2.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||