public class YearMonthDayIMMDateCalculator extends AbstractIMMDateCalculator<org.joda.time.YearMonthDay>
YearMonthDay based implementation of the
IMMDateCalculatorDAYS_IN_WEEK, MONTH_IN_YEAR, MONTHS_IN_QUARTER| Constructor and Description |
|---|
YearMonthDayIMMDateCalculator() |
| Modifier and Type | Method and Description |
|---|---|
List<org.joda.time.YearMonthDay> |
getIMMDates(org.joda.time.YearMonthDay start,
org.joda.time.YearMonthDay 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.
|
protected org.joda.time.YearMonthDay |
getNextIMMDate(boolean requestNextIMM,
org.joda.time.YearMonthDay theStartDate,
IMMPeriod period) |
boolean |
isIMMDate(org.joda.time.YearMonthDay date)
Checks if a given date is an official IMM Date (3rd Wednesdays of
March/June/Sept/Dec.
|
getIMMDates, getNextIMMDate, getNextIMMDate, getPreviousIMMDate, getPreviousIMMDatepublic boolean isIMMDate(org.joda.time.YearMonthDay date)
IMMDateCalculatorprotected org.joda.time.YearMonthDay getNextIMMDate(boolean requestNextIMM,
org.joda.time.YearMonthDay theStartDate,
IMMPeriod period)
getNextIMMDate in class AbstractIMMDateCalculator<org.joda.time.YearMonthDay>public List<org.joda.time.YearMonthDay> getIMMDates(org.joda.time.YearMonthDay start, org.joda.time.YearMonthDay end, IMMPeriod period)
IMMDateCalculatorstart - 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–2014 Appendium - Portfolio Financing Platform. All rights reserved.