public class DayCountConvention_NONE extends Object implements DayCountConventionInterface
DayCountConventionInterface.| Constructor and Description |
|---|
DayCountConvention_NONE()
Create a day count convention with a constant year fraction of 1.0 for all periods.
|
| Modifier and Type | Method and Description |
|---|---|
double |
getDaycount(Calendar startDate,
Calendar endDate)
Return the number of days between startDate and endDate given the
specific daycount convention.
|
double |
getDaycountFraction(Calendar startDate,
Calendar endDate)
Return the daycount fraction corresponding to the period from startDate to endDate given the
specific daycount convention.
|
public DayCountConvention_NONE()
public double getDaycount(Calendar startDate, Calendar endDate)
DayCountConventionInterfacegetDaycount in interface DayCountConventionInterfacestartDate - The start date given as a Calendar.endDate - The end date given as a Calendar.public double getDaycountFraction(Calendar startDate, Calendar endDate)
DayCountConventionInterfacegetDaycountFraction in interface DayCountConventionInterfacestartDate - The start date given as a Calendar.endDate - The end date given as a Calendar.Copyright © 2015. All rights reserved.