E - a representation of a date, typically JDK: Date, Calendar;
            Joda:LocalDate, YearMonthDaypublic abstract class AbstractIMMDateCalculator<E> extends Object implements IMMDateCalculator<E>
Date and LocalDate are the only
 viable values for it for now.| Modifier and Type | Field and Description | 
|---|---|
protected static int | 
DAYS_IN_WEEK  | 
protected static int | 
MONTH_IN_YEAR  | 
protected static int | 
MONTHS_IN_QUARTER  | 
| Constructor and Description | 
|---|
AbstractIMMDateCalculator()  | 
| 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 IMMPeriod.QUARTERLY). 
 | 
protected abstract E | 
getNextIMMDate(boolean requestNextIMM,
              E theStartDate,
              IMMPeriod period)  | 
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. 
 | 
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetIMMDates, isIMMDateprotected static final int MONTHS_IN_QUARTER
protected static final int MONTH_IN_YEAR
protected static final int DAYS_IN_WEEK
public E getNextIMMDate(E startDate)
IMMDateCalculatorgetNextIMMDate in interface IMMDateCalculator<E>startDate - public E getNextIMMDate(E startDate, IMMPeriod period)
IMMDateCalculatorgetNextIMMDate in interface IMMDateCalculator<E>startDate - period - specify when the "next" IMM is, if quarterly then it is the
            conventional algorithm.public E getPreviousIMMDate(E startDate)
IMMDateCalculatorgetPreviousIMMDate in interface IMMDateCalculator<E>startDate - public E getPreviousIMMDate(E startDate, IMMPeriod period)
IMMDateCalculatorgetPreviousIMMDate in interface IMMDateCalculator<E>startDate - period - specify when the "previous" IMM is, if quarterly then it is
            the conventional algorithm.public List<E> getIMMDates(E start, E end)
getIMMDates in interface IMMDateCalculator<E>start - start of the interval, excludedend - end of the interval, may be included.public List<E> getNextIMMDates(E start, int numberOfDates)
getNextIMMDates in interface IMMDateCalculator<E>start - start of the interval, excludednumberOfDates - number of IMM dates to return.Copyright © 2006–2022 Appendium - Portfolio Financing Platform. All rights reserved.