|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.openbp.common.util.DateComparator
public class DateComparator
Comparator for the date object.
| Field Summary | |
|---|---|
static int[] |
CALENDAR_TYPES
Mapping array for the compare elements to the calender date information |
static int |
COMPARE_COMPLETE
Compare all date information |
static int |
COMPARE_DAYS
Compare the date until the date |
static int |
COMPARE_HOURS
Compare the date until the hours |
static int |
COMPARE_MINUTES
Compare the date until the minutes |
static int |
COMPARE_MONTH
Compare the date until the month |
static int |
COMPARE_YEAR
Compare the date until the year |
| Constructor Summary | |
|---|---|
DateComparator()
Constructor for DateComparator. |
|
| Method Summary | |
|---|---|
int |
compare(java.lang.Object o1,
java.lang.Object o2)
Compares two dates. |
static void |
main(java.lang.String[] args)
Main. |
void |
setDateElementToCompare(int dateElement)
Sets the date element type to compare |
| 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 int COMPARE_COMPLETE
public static final int COMPARE_MINUTES
public static final int COMPARE_HOURS
public static final int COMPARE_DAYS
public static final int COMPARE_MONTH
public static final int COMPARE_YEAR
public static final int[] CALENDAR_TYPES
| Constructor Detail |
|---|
public DateComparator()
| Method Detail |
|---|
public void setDateElementToCompare(int dateElement)
dateElement - COMPARE_COMPLETE ||
COMPARE_MINUTES ||
COMPARE_HOURS ||
COMPARE_DAYS ||
COMPARE_MONTH ||
COMPARE_YEAR ||
public int compare(java.lang.Object o1,
java.lang.Object o2)
compare in interface java.util.Comparatorpublic static void main(java.lang.String[] args)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||