public class CalendarKitCalculatorsFactory extends AbstractKitCalculatorsFactory<Calendar>
Calendar
based
calculators.Constructor and Description |
---|
CalendarKitCalculatorsFactory() |
configureCurrencyCalculatorBuilder, getCurrencyCalculatorConfig, getHolidayCalendar, getRegisteredHolidayCalendarNames, isHolidayCalendarRegistered, registerHolidays, setCurrencyCalculatorConfig, setHolidays, unregisterAllHolidayCalendars, unregisterHolidayCalendar
public static CalendarKitCalculatorsFactory getDefaultInstance()
public CurrencyDateCalculatorBuilder<Calendar> 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<Calendar> defaultCurrencyDateCalculatorBuilder(String ccy1, String ccy2, SpotLag spotLag)
public CalendarCurrencyDateCalculator buildCurrencyDateCalculator(CurrencyDateCalculatorBuilder<Calendar> builder)
public static CalendarCurrencyDateCalculator forwardCurrencyDateCalculator(String ccy1, String ccy2, SpotLag spotLag)
public CalendarCurrencyDateCalculator 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 static CalendarDateCalculator forwardCalculator(String name)
public static CalendarDateCalculator backwardCalculator(String name)
public static CalendarDateCalculator forwardUnlessMovingBackCalculator(String name)
public static CalendarDateCalculator modifiedFollowingCalculator(String name)
public static CalendarDateCalculator modifiedPrecedingCalculator(String name)
public CalendarDateCalculator 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 HolidayHandlerType or null.IllegalArgumentException
- if the type is not null or a valid value.public HolidayHandler<Calendar> getHolidayHandler(String holidayHandlerType)
KitCalculatorsFactory
public PeriodCountCalculator<Calendar> getPeriodCountCalculator()
public IMMDateCalculator<Calendar> getIMMDateCalculator()
Copyright © 2006–2022 Appendium - Portfolio Financing Platform. All rights reserved.