public class DateKitCalculatorsFactory extends AbstractKitCalculatorsFactory<Date>
Date
based calculators.Constructor and Description |
---|
DateKitCalculatorsFactory() |
configureCurrencyCalculatorBuilder, getCurrencyCalculatorConfig, getHolidayCalendar, getRegisteredHolidayCalendarNames, isHolidayCalendarRegistered, registerHolidays, setCurrencyCalculatorConfig, setHolidays, unregisterAllHolidayCalendars, unregisterHolidayCalendar
public static DateKitCalculatorsFactory getDefaultInstance()
public CurrencyDateCalculatorBuilder<Date> 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<Date> defaultCurrencyDateCalculatorBuilder(String ccy1, String ccy2, SpotLag spotLag)
public DateCurrencyDateCalculator buildCurrencyDateCalculator(CurrencyDateCalculatorBuilder<Date> builder)
public static DateCurrencyDateCalculator forwardCurrencyDateCalculator(String ccy1, String ccy2, SpotLag spotLag)
public DateCurrencyDateCalculator 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 DateDateCalculator forwardCalculator(String name)
public static DateDateCalculator backwardCalculator(String name)
public static DateDateCalculator forwardUnlessMovingBackCalculator(String name)
public static DateDateCalculator modifiedFollowingCalculator(String name)
public static DateDateCalculator modifiedPrecedingCalculator(String name)
public DateDateCalculator getDateCalculator(String name, String holidayHandlerType)
KitCalculatorsFactory
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.public HolidayHandler<Date> getHolidayHandler(String holidayHandlerType)
KitCalculatorsFactory
public PeriodCountCalculator<Date> getPeriodCountCalculator()
KitCalculatorsFactory
public IMMDateCalculator<Date> getIMMDateCalculator()
KitCalculatorsFactory
Copyright © 2006–2022 Appendium - Portfolio Financing Platform. All rights reserved.