net.objectlab.kit.datecalc.jdk
Class CalendarIMMDateCalculator
java.lang.Object
net.objectlab.kit.datecalc.common.AbstractIMMDateCalculator<Calendar>
net.objectlab.kit.datecalc.jdk.CalendarIMMDateCalculator
- All Implemented Interfaces:
- IMMDateCalculator<Calendar>
public class CalendarIMMDateCalculator
- extends AbstractIMMDateCalculator<Calendar>
Jdk Calendar implementation of the
IMMDateCalculator
- Version:
- $Revision: 300 $ $Date: 2010-03-18 16:09:14 -0400 (Thu, 18 Mar 2010) $
- Author:
- Marcin Jekot, $LastChangedBy: benoitx $
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CalendarIMMDateCalculator
public CalendarIMMDateCalculator()
getIMMDates
public List<Calendar> getIMMDates(Calendar start,
Calendar 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.
- Parameters:
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.
- Returns:
- list of IMM dates
getNextIMMDate
protected Calendar getNextIMMDate(boolean requestNextIMM,
Calendar startDate,
IMMPeriod period)
- Specified by:
getNextIMMDate in class AbstractIMMDateCalculator<Calendar>
isIMMDate
public boolean isIMMDate(Calendar date)
Copyright © 2006-2010 Appendium - Portfolio Financing Platform. All Rights Reserved.