E
- a representation of a date, typically JDK: Date, Calendar;
Joda:LocalDate, YearMonthDaypublic interface IMMDateCalculator<E>
Modifier and Type | Method and Description |
---|---|
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.
|
List<E> |
getNextIMMDates(E start,
int numberOfDates)
Returns a list of N IMM dates from a given date, it will exclude the start
date if it is an IMM date
(same as as calling getIMMDates(start,end,IMMPeriod.QUARTERLY)).
|
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.
|
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> getNextIMMDates(E start, int numberOfDates)
start
- start of the interval, excludednumberOfDates
- number of IMM dates to return.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.Copyright © 2006–2022 Appendium - Portfolio Financing Platform. All rights reserved.