|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Frequency
The Frequency
interface is an abstraction for calculating recurring dates. Given a
Frequency
instance you can get the next or previous dates in the sequence.
TimeUnit.MONTH
may not always behave as expected. In particular, it cannot be guaranteed that calling next(MDDate)
followed by previous(MDDate)
will return you to the original date. Refer to the documentation of an
implementor as to what behavior is expected.
Method Summary | |
---|---|
java.lang.String |
getDescription()
Returns a human readable description of the Frequency . |
MDDate |
next(MDDate date)
Returns the next date in the sequency based on this frequency. |
MDDate |
previous(MDDate date)
Returns the previous date in the sequency based on this frequency. |
Method Detail |
---|
MDDate next(MDDate date)
date
- the initial MDDate
MDDate previous(MDDate date)
date
- the initial MDDate
java.lang.String getDescription()
Frequency
.
Frequency
.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |