public class DayCountConvention_UNKNOWN extends Object implements DayCountConventionInterface
| Constructor and Description |
|---|
DayCountConvention_UNKNOWN()
Create the unknown day count convention.
|
DayCountConvention_UNKNOWN(String name)
Create the unknown day count convention.
|
| 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_UNKNOWN()
public DayCountConvention_UNKNOWN(String name)
name - A given name, which will be shown in the IllegalArgumentException when any method is called on this object.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.