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