public class LocalDateKitCalculatorsFactory extends AbstractKitCalculatorsFactory<LocalDate>
LocalDate based
calculators.| Constructor and Description |
|---|
LocalDateKitCalculatorsFactory() |
configureCurrencyCalculatorBuilder, getCurrencyCalculatorConfig, getHolidayCalendar, getRegisteredHolidayCalendarNames, isHolidayCalendarRegistered, registerHolidays, setCurrencyCalculatorConfig, setHolidays, unregisterAllHolidayCalendars, unregisterHolidayCalendarpublic static LocalDateKitCalculatorsFactory getDefaultInstance()
public CurrencyDateCalculatorBuilder<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<LocalDate> defaultCurrencyDateCalculatorBuilder(String ccy1, String ccy2, SpotLag spotLag)
public static LocalDateCurrencyDateCalculator forwardCurrencyDateCalculator(String ccy1, String ccy2, SpotLag spotLag)
public LocalDateCurrencyDateCalculator buildCurrencyDateCalculator(CurrencyDateCalculatorBuilder<LocalDate> builder)
public LocalDateCurrencyDateCalculator getDefaultCurrencyDateCalculator(String ccy1, String ccy2, SpotLag spotLag)
KitCalculatorsFactoryccy1 - 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 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<LocalDate> getHolidayHandler(String holidayHandlerType)
KitCalculatorsFactorypublic PeriodCountCalculator<LocalDate> getPeriodCountCalculator()
KitCalculatorsFactorypublic IMMDateCalculator<LocalDate> getIMMDateCalculator()
KitCalculatorsFactoryCopyright © 2006–2022 Appendium - Portfolio Financing Platform. All rights reserved.