net.objectlab.kit.datecalc.jdk
Class CalendarIMMDateCalculator

Package class diagram package CalendarIMMDateCalculator
java.lang.Object
  extended by net.objectlab.kit.datecalc.common.AbstractIMMDateCalculator<Calendar>
      extended by 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 $

Field Summary
 
Fields inherited from class net.objectlab.kit.datecalc.common.AbstractIMMDateCalculator
DAYS_IN_WEEK, MONTH_IN_YEAR, MONTHS_IN_QUARTER
 
Constructor Summary
CalendarIMMDateCalculator()
           
 
Method Summary
 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.
protected  Calendar getNextIMMDate(boolean requestNextIMM, Calendar startDate, IMMPeriod period)
           
 boolean isIMMDate(Calendar date)
           
 
Methods inherited from class net.objectlab.kit.datecalc.common.AbstractIMMDateCalculator
getIMMDates, getNextIMMDate, getNextIMMDate, getPreviousIMMDate, getPreviousIMMDate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CalendarIMMDateCalculator

public CalendarIMMDateCalculator()
Method Detail

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, excluded
end - 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.