public class DayCountConventionFactory extends Object implements Serializable
| Modifier and Type | Method and Description |
|---|---|
static double |
getDaycount(LocalDate startDate,
LocalDate endDate,
String convention)
Return the number of days between startDate and endDate given the
specific daycount convention.
|
static DayCountConvention |
getDayCountConvention(String convention)
Create a day count convention base on a convention string.
|
static double |
getDaycountFraction(LocalDate startDate,
LocalDate endDate,
String convention)
Return the daycount fraction corresponding to the period from startDate to endDate given the
specific daycount convention.
|
public static DayCountConvention getDayCountConvention(String convention)
convention - A convention string.public static double getDaycount(LocalDate startDate, LocalDate endDate, String convention)
Copyright © 2019. All rights reserved.