|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||

E - a representation of a date, typically JDK: Date, Calendar;
Joda:LocalDate, YearMonthDaypublic interface IMMDateCalculator<E>
The IMMDates are defined as the 3rd Wednesday of March, June, September and December.
| Method Summary | |
|---|---|
List<E> |
getIMMDates(E start,
E end)
Returns a list of IMM dates between 2 dates, it will exclude the start date if it is an IMM date but would include the end date if it is an IMM (same as as calling getIMMDates(start,end,IMMPeriod.QUARTERLY)). |
List<E> |
getIMMDates(E start,
E end,
IMMPeriod period)
Returns a list of IMM dates between 2 dates, it will exclude the start date if it is an IMM date but would include the end date if it is an IMM. |
E |
getNextIMMDate(E startDate)
Given a start date, it will return the next IMM Date, even if the start date is an IMM date (same as calling getNextIMMDate(IMMPeriod.QUARTERLY)). |
E |
getNextIMMDate(E startDate,
IMMPeriod period)
Given a start date, it will return the next IMM Date based on the IMMPeriod, even if the start date is an IMM date. |
E |
getPreviousIMMDate(E startDate)
Given a start date, it will return the previous IMM Date, even if the start date is an IMM date. |
E |
getPreviousIMMDate(E startDate,
IMMPeriod period)
Given a start date, it will return the previous IMM Date based on the IMMPeriod, even if the start date is an IMM date. |
boolean |
isIMMDate(E date)
Checks if a given date is an official IMM Date (3rd Wednesdays of March/June/Sept/Dec. |
| Method Detail |
|---|
boolean isIMMDate(E date)
date -
E getNextIMMDate(E startDate)
startDate -
E getNextIMMDate(E startDate,
IMMPeriod period)
startDate - period - specify when the "next" IMM is, if quarterly then it is the
conventional algorithm.
E getPreviousIMMDate(E startDate)
startDate -
E getPreviousIMMDate(E startDate,
IMMPeriod period)
period - specify when the "previous" IMM is, if quarterly then it is
the conventional algorithm.
List<E> getIMMDates(E start,
E end)
start - start of the interval, excludedend - end of the interval, may be included.
List<E> getIMMDates(E start,
E end,
IMMPeriod period)
start - start of the interval, excludedend - end of the interval, may be included.period - specify when the "next" IMM is, if quarterly then it is the
conventional algorithm.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||