public class DayCountConventionFactory extends Object
| Constructor and Description |
|---|
DayCountConventionFactory()
Factory methods for day count conventions.
|
| Modifier and Type | Method and Description |
|---|---|
static double |
getDaycount(java.time.LocalDate startDate,
java.time.LocalDate endDate,
String convention)
Return the number of days between startDate and endDate given the
specific daycount convention.
|
static DayCountConventionInterface |
getDayCountConvention(String convention)
Create a day count convention base on a convention string.
|
static double |
getDaycountFraction(java.time.LocalDate startDate,
java.time.LocalDate endDate,
String convention)
Return the daycount fraction corresponding to the period from startDate to endDate given the
specific daycount convention.
|
public DayCountConventionFactory()
public static DayCountConventionInterface getDayCountConvention(String convention)
convention - A convention string.public static double getDaycount(java.time.LocalDate startDate,
java.time.LocalDate endDate,
String convention)
startDate - The start date given as a LocalDate.endDate - The end date given as a LocalDate.convention - A convention string.public static double getDaycountFraction(java.time.LocalDate startDate,
java.time.LocalDate endDate,
String convention)
startDate - The start date given as a LocalDate.endDate - The end date given as a LocalDate.convention - A convention string.Copyright © 2017. All rights reserved.