|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface DateIterator
Interface describing an iterator for dates.
| Nested Class Summary | |
|---|---|
static class |
DateIterator.Format
Enumeration for the different format types. |
| Method Summary | |
|---|---|
long |
getApproxStepMilliSeconds()
Return the approximate step between dates in milli seconds. |
String |
getLabel(JaretDate date,
DateIterator.Format format)
Retrieve a label for a given date. |
JaretDate |
getNextDate()
Retrieve the next date from the iterator. |
boolean |
hasNextDate()
Check whether the iterator will supply a next date. |
JaretDate |
previewNextDate()
Retrieve the next date without modifying the iterator. |
void |
reInitialize(JaretDate startDate,
JaretDate endDate)
(re)initialize the iterator with a start and an end date. |
void |
setCorrectDST(boolean correctDST)
If the correct DST flag is set to true, the iterator will add/remove an hour if the DST switch time has been passed. |
void |
setFormatter(IIteratorFormatter formatter)
Set a formatter to be used with this iterator overriding the default formatting. |
| Method Detail |
|---|
void reInitialize(JaretDate startDate,
JaretDate endDate)
startDate - first date that will be returned in subsequent callsendDate - last date that will be returnedJaretDate getNextDate()
boolean hasNextDate()
JaretDate previewNextDate()
null if no subsequent date is available
String getLabel(JaretDate date,
DateIterator.Format format)
date - the date to formatformat - short, medium or long
void setFormatter(IIteratorFormatter formatter)
formatter - the formatter to use.long getApproxStepMilliSeconds()
void setCorrectDST(boolean correctDST)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||