protected CurrencyDateCalculatorBuilder < E > configureCurrencyCalculatorBuilder ( final CurrencyDateCalculatorBuilder < E > builder ) { return builder // . ccy1Calendar ( getHolidayCalendar ( builder . getCcy1 ( ) ) ) // . ccy1Week ( getCurrencyCalculatorConfig ( ) . getWorkingWeek ( builder . getCcy1 ( ) ) ) // . ccy2Calendar ( getHolidayCalendar ( builder . getCcy2 ( ) ) ) // . ccy2Week ( getCurrencyCalculatorConfig ( ) . getWorkingWeek ( builder . getCcy2 ( ) ) ) // . crossCcyCalendar ( getHolidayCalendar ( builder . getCrossCcy ( ) ) ) // . crossCcyWeek ( getCurrencyCalculatorConfig ( ) . getWorkingWeek ( builder . getCrossCcy ( ) ) ) // . currencyCalculatorConfig ( getCurrencyCalculatorConfig ( ) ) ; }
Method that may be called by the specialised factory methods and will fetch the registered holidayCalendar for all 3 currencies and the working weeks via the currencyCalculatorConfig and assigning currencyCalculatorConfig to the builder using the DefaultCurrencyCalculatorConfig if not modified .