|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface Dated
An object with start and end dates.
Dates represented as longs are millisecond values
representing the number of milliseconds that have passed since January 1, 1970 00:00:00.000 GMT.
Date| Field Summary | |
|---|---|
static long |
DATE_NOW
Sentinel value indicating "today" or "now" when using longs for dates. |
static long |
DATE_NULL
Sentinel value indicating "no date" when using longs for dates. |
static String |
DFLT_END_DATE_ATTRIBUTE
The default attribute indicating the end of an entity's date range. |
static String |
DFLT_START_DATE_ATTRIBUTE
The default attribute indicating the start of an entity's date range. |
| Method Summary | |
|---|---|
long |
getEndDate()
Return the end date. |
long |
getStartDate()
Return the start date. |
void |
setEndDate(long when)
Set the end date. |
void |
setStartDate(long when)
Set the start date. |
| Field Detail |
|---|
static final String DFLT_START_DATE_ATTRIBUTE
static final String DFLT_END_DATE_ATTRIBUTE
static final long DATE_NULL
longs for dates.
static final long DATE_NOW
longs for dates.
| Method Detail |
|---|
long getStartDate()
void setStartDate(long when)
DATE_NOW is not a valid value.
when - the new start datelong getEndDate()
void setEndDate(long when)
DATE_NOW is not a valid value.
when - the new end date
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||