org.jfin.date.daycount.defaultimpl
Class Business252
- java.lang.Object
-
- org.jfin.date.daycount.DaycountCalculator
-
- org.jfin.date.daycount.defaultimpl.Business252
-
public class Business252 extends DaycountCalculator
-
-
Constructor Summary
Constructors Constructor and Description Business252(HolidayCalendar holidayCalendar)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description doublecalculateDaycountFraction(java.util.Calendar startCalendar, java.util.Calendar endCalendar)Calculates the daycount fraction of the period represented by the startCalendar and endCalendardoublecalculateDaycountFraction(java.util.Calendar startCalendar, java.util.Calendar endCalendar, java.util.Calendar periodStartCalendar, java.util.Calendar periodEndCalendar)Calculates the daycount fraction of the period represented by the startCalendar and endCalendar with reference to the period represented by periodStartCalendar and periodEndCalendar.HolidayCalendargetHolidayCalendar()voidsetHolidayCalendar(HolidayCalendar holidayCalendar)-
Methods inherited from class org.jfin.date.daycount.DaycountCalculator
calculateDaycountFraction, daysBetween
-
-
-
-
Constructor Detail
-
Business252
public Business252(HolidayCalendar holidayCalendar)
- Parameters:
holidayCalendar-
-
-
Method Detail
-
calculateDaycountFraction
public double calculateDaycountFraction(java.util.Calendar startCalendar, java.util.Calendar endCalendar) throws DaycountExceptionDescription copied from class:DaycountCalculatorCalculates the daycount fraction of the period represented by the startCalendar and endCalendar- Specified by:
calculateDaycountFractionin classDaycountCalculator- Returns:
- The day count fraction of a year
- Throws:
DaycountException
-
getHolidayCalendar
public HolidayCalendar getHolidayCalendar()
- Returns:
- Returns the holidayCalendar.
-
setHolidayCalendar
public void setHolidayCalendar(HolidayCalendar holidayCalendar)
- Parameters:
holidayCalendar- The holidayCalendar to set.
-
calculateDaycountFraction
public double calculateDaycountFraction(java.util.Calendar startCalendar, java.util.Calendar endCalendar, java.util.Calendar periodStartCalendar, java.util.Calendar periodEndCalendar) throws DaycountExceptionDescription copied from class:DaycountCalculatorCalculates the daycount fraction of the period represented by the startCalendar and endCalendar with reference to the period represented by periodStartCalendar and periodEndCalendar. Used when the period represented by startCalendar and endCalendar is a long or short stub period, the periodStartCalendar and periodEndCalendar represent the 'notional' period as if it were a full period and not a stub- Specified by:
calculateDaycountFractionin classDaycountCalculator- Returns:
- The day count fraction of a year
- Throws:
DaycountException
-
-
DataMelt 3.0 © DataMelt by jWork.ORG