org.jfin.date.daycount.defaultimpl
Class US30360
- java.lang.Object
-
- org.jfin.date.daycount.DaycountCalculator
-
- org.jfin.date.daycount.defaultimpl.US30360
-
public class US30360 extends DaycountCalculator
If startCalendar and endCalendar are equal dates, returns zero.
-
-
Constructor Summary
Constructors Constructor and Description US30360()
-
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.-
Methods inherited from class org.jfin.date.daycount.DaycountCalculator
calculateDaycountFraction, daysBetween
-
-
-
-
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
-
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