public class DayCountConventionFactory extends Object
| Constructor and Description |
|---|
DayCountConventionFactory()
Factory methods for day count conventions.
|
| Modifier and Type | Method and Description |
|---|---|
static Calendar |
getCalendarForData(Date date)
Returns a java.util.Calendar for a given java.util.Date.
|
static double |
getDaycount(Date startDate,
Date 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(Date startDate,
Date 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(Date startDate, Date endDate, String convention)
public static double getDaycountFraction(Date startDate, Date endDate, String convention)
Copyright © 2015. All rights reserved.