public class LocalDateKitCalculatorsFactory extends AbstractKitCalculatorsFactory<org.joda.time.LocalDate>
LocalDate
based
calculators.Constructor and Description |
---|
LocalDateKitCalculatorsFactory() |
Modifier and Type | Method and Description |
---|---|
static LocalDateCalculator |
backwardCalculator(String name) |
LocalDateCurrencyDateCalculator |
buildCurrencyDateCalculator(CurrencyDateCalculatorBuilder<org.joda.time.LocalDate> builder) |
static CurrencyDateCalculatorBuilder<org.joda.time.LocalDate> |
defaultCurrencyDateCalculatorBuilder(String ccy1,
String ccy2,
SpotLag spotLag) |
static LocalDateCalculator |
forwardCalculator(String name) |
static LocalDateCurrencyDateCalculator |
forwardCurrencyDateCalculator(String ccy1,
String ccy2,
SpotLag spotLag) |
static LocalDateCalculator |
forwardUnlessMovingBackCalculator(String name) |
LocalDateCalculator |
getDateCalculator(String name,
String holidayHandlerType)
Create a new DateCalculator for a given name and type of handling.
|
LocalDateCurrencyDateCalculator |
getDefaultCurrencyDateCalculator(String ccy1,
String ccy2,
SpotLag spotLag)
Create a new IMMUTABLE CurrencyDateCalculator specialised for 2 currencies, including WorkingWeek, calendars
registered and CurrencyCalculatorConfig.
|
CurrencyDateCalculatorBuilder<org.joda.time.LocalDate> |
getDefaultCurrencyDateCalculatorBuilder(String ccy1,
String ccy2,
SpotLag spotLag)
Return a builder using the registered calendars/working weeks and a Modified Forward Holiday handler for the currency pair; .
|
static LocalDateKitCalculatorsFactory |
getDefaultInstance() |
HolidayHandler<org.joda.time.LocalDate> |
getHolidayHandler(String holidayHandlerType)
Create a new holiday handler of given type
|
IMMDateCalculator<org.joda.time.LocalDate> |
getIMMDateCalculator()
Create a new IMMDateCalculator.
|
PeriodCountCalculator<org.joda.time.LocalDate> |
getPeriodCountCalculator()
Create a new PeriodCountCalculator.
|
static LocalDateCalculator |
modifiedFollowingCalculator(String name) |
static LocalDateCalculator |
modifiedPrecedingCalculator(String name) |
configureCurrencyCalculatorBuilder, getCurrencyCalculatorConfig, getHolidayCalendar, getRegisteredHolidayCalendarNames, isHolidayCalendarRegistered, registerHolidays, setCurrencyCalculatorConfig, setHolidays, unregisterAllHolidayCalendars, unregisterHolidayCalendar
public static LocalDateKitCalculatorsFactory getDefaultInstance()
public CurrencyDateCalculatorBuilder<org.joda.time.LocalDate> getDefaultCurrencyDateCalculatorBuilder(String ccy1, String ccy2, SpotLag spotLag)
ccy1
- first currency, will pickup the holiday set for this ccy.ccy2
- second currency, will pick up the holiday set for this ccy.spotLag
- the number of days between tradeDate and spotDate.public static CurrencyDateCalculatorBuilder<org.joda.time.LocalDate> defaultCurrencyDateCalculatorBuilder(String ccy1, String ccy2, SpotLag spotLag)
public static LocalDateCurrencyDateCalculator forwardCurrencyDateCalculator(String ccy1, String ccy2, SpotLag spotLag)
public LocalDateCurrencyDateCalculator getDefaultCurrencyDateCalculator(String ccy1, String ccy2, SpotLag spotLag)
KitCalculatorsFactory
ccy1
- first currency, will pickup the holiday set for this ccy.ccy2
- second currency, will pick up the holiday set for this ccy.spotLag
- the number of days between tradeDate and spotDate.public LocalDateCurrencyDateCalculator buildCurrencyDateCalculator(CurrencyDateCalculatorBuilder<org.joda.time.LocalDate> builder)
public static LocalDateCalculator forwardCalculator(String name)
public static LocalDateCalculator backwardCalculator(String name)
public static LocalDateCalculator forwardUnlessMovingBackCalculator(String name)
public static LocalDateCalculator modifiedFollowingCalculator(String name)
public static LocalDateCalculator modifiedPrecedingCalculator(String name)
public LocalDateCalculator getDateCalculator(String name, String holidayHandlerType)
name
- calendar name (holidays set interested in). If there is set of
holidays with that name, it will return a DateCalculator with
an empty holiday set (will work on Weekend only).holidayHandlerType
- typically one of the value of HolidayHandlerTypepublic HolidayHandler<org.joda.time.LocalDate> getHolidayHandler(String holidayHandlerType)
KitCalculatorsFactory
public PeriodCountCalculator<org.joda.time.LocalDate> getPeriodCountCalculator()
KitCalculatorsFactory
public IMMDateCalculator<org.joda.time.LocalDate> getIMMDateCalculator()
KitCalculatorsFactory
Copyright © 2006–2022 Appendium - Portfolio Financing Platform. All rights reserved.