Package | Description |
---|---|
net.objectlab.kit.datecalc.common |
This package provides functionalities that are used by both JDK and Joda implementation,
it is not released alone but included in the datecalc-jdk, datecalc-jdk8 or datecalc-joda JARs.
|
net.objectlab.kit.datecalc.common.ccy |
This package implements the abstract CurrencyDateCalculator interfaces; it is not released alone but included in the datecalc-jdk, datecalc-jdk8 or datecalc-joda JARs.
|
net.objectlab.kit.datecalc.jdk |
This package provides a pure JDK implementation of the DateCalculator for both Calendar and Date, it is
released as a standalone datecalc-jdk JAR.
|
net.objectlab.kit.datecalc.jdk8 |
This package implements the DateCalculator interfaces using JDK8
|
net.objectlab.kit.datecalc.joda |
This package implements the DateCalculator interfaces using Joda-time See Joda-time
|
Modifier and Type | Method and Description |
---|---|
CurrencyDateCalculatorBuilder<E> |
CurrencyDateCalculatorBuilder.adjustStartDateWithCurrencyPair(boolean adjustStartDateWithCurrencyPair)
If true, the startDate given to the calculator will be move to the NEXT working day for both currencies (e.g.
|
CurrencyDateCalculatorBuilder<E> |
CurrencyDateCalculatorBuilder.brokenDateAllowed(boolean brokenDateAllowed)
If true, then the calculator can return a SpotDate/TenorDate where the cross currency is NOT a trading date (e.g.
|
CurrencyDateCalculatorBuilder<E> |
CurrencyDateCalculatorBuilder.ccy1Calendar(HolidayCalendar<E> ccy1Calendar)
The holiday calendar for ccy1, if null or not set, then a default calendar will be used with NO holidays.
|
CurrencyDateCalculatorBuilder<E> |
CurrencyDateCalculatorBuilder.ccy1Week(WorkingWeek ccy1Week)
Provides the definition of a working week for the currency; if not provided and the currencyCalculatorConfig is given, it
will do a look up for this currency.
|
CurrencyDateCalculatorBuilder<E> |
CurrencyDateCalculatorBuilder.ccy2Calendar(HolidayCalendar<E> ccy2Calendar)
The holiday calendar for ccy2, if null or not set, then a default calendar will be used with NO holidays.
|
CurrencyDateCalculatorBuilder<E> |
CurrencyDateCalculatorBuilder.ccy2Week(WorkingWeek ccy2Week)
Provides the definition of a working week for the currency; if not provided and the currencyCalculatorConfig is given, it
will do a look up for this currency.
|
protected CurrencyDateCalculatorBuilder<E> |
AbstractKitCalculatorsFactory.configureCurrencyCalculatorBuilder(CurrencyDateCalculatorBuilder<E> builder)
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.
|
CurrencyDateCalculatorBuilder<E> |
CurrencyDateCalculatorBuilder.crossCcy(String crossCcy)
If brokenDate is not allowed, we do require to check the WorkingWeek and Holiday for the crossCcy when
validating the SpotDate or a Tenor date; if null or not set, then a default calendar will be used with NO holidays.
|
CurrencyDateCalculatorBuilder<E> |
CurrencyDateCalculatorBuilder.crossCcyCalendar(HolidayCalendar<E> crossCcyCalendar)
If brokenDate is not allowed, we do require to check the WorkingWeek and Holiday for the crossCcy when
validating the SpotDate or a Tenor date.
|
CurrencyDateCalculatorBuilder<E> |
CurrencyDateCalculatorBuilder.crossCcyWeek(WorkingWeek crossCcyWeek)
If brokenDate is not allowed, we do require to check the WorkingWeek and Holiday for the crossCcy when
validating the SpotDate or a Tenor date.
|
CurrencyDateCalculatorBuilder<E> |
CurrencyDateCalculatorBuilder.currencyCalculatorConfig(CurrencyCalculatorConfig currencyCalculatorConfig)
Provides information about currencies subject to USD on T+1 and WorkingWeeks if not specified individually.
|
CurrencyDateCalculatorBuilder<E> |
CurrencyDateCalculatorBuilder.currencyPair(String ccy1,
String ccy2,
SpotLag spotLag)
This specialises the calculator to the given currency pair and the SpotLag (0, 1, 2).
|
CurrencyDateCalculatorBuilder<E> |
KitCalculatorsFactory.getDefaultCurrencyDateCalculatorBuilder(String ccy1,
String ccy2,
SpotLag spotLag)
Create a new CurrencyDateCalculatorBuilder specialised for 2 currencies, including WorkingWeek, calendars registered and CurrencyCalculatorConfig.
|
CurrencyDateCalculatorBuilder<E> |
CurrencyDateCalculatorBuilder.tenorHolidayHandler(HolidayHandler<E> holidayHandler)
Provides the holiday handler for the Tenor Date, note that Spot is ALWAYS using Forward.
|
Modifier and Type | Method and Description |
---|---|
CurrencyDateCalculator<E> |
KitCalculatorsFactory.buildCurrencyDateCalculator(CurrencyDateCalculatorBuilder<E> builder) |
protected CurrencyDateCalculatorBuilder<E> |
AbstractKitCalculatorsFactory.configureCurrencyCalculatorBuilder(CurrencyDateCalculatorBuilder<E> builder)
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.
|
Constructor and Description |
---|
AbstractCurrencyDateCalculator(CurrencyDateCalculatorBuilder<E> builder) |
Modifier and Type | Method and Description |
---|---|
static CurrencyDateCalculatorBuilder<Date> |
DateKitCalculatorsFactory.defaultCurrencyDateCalculatorBuilder(String ccy1,
String ccy2,
SpotLag spotLag) |
static CurrencyDateCalculatorBuilder<Calendar> |
CalendarKitCalculatorsFactory.defaultCurrencyDateCalculatorBuilder(String ccy1,
String ccy2,
SpotLag spotLag) |
CurrencyDateCalculatorBuilder<Date> |
DateKitCalculatorsFactory.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; this
does NOT copy the calendars or Currency Config.
|
CurrencyDateCalculatorBuilder<Calendar> |
CalendarKitCalculatorsFactory.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; this
does NOT copy the calendars or Currency Config.
|
Modifier and Type | Method and Description |
---|---|
CalendarCurrencyDateCalculator |
CalendarKitCalculatorsFactory.buildCurrencyDateCalculator(CurrencyDateCalculatorBuilder<Calendar> builder) |
DateCurrencyDateCalculator |
DateKitCalculatorsFactory.buildCurrencyDateCalculator(CurrencyDateCalculatorBuilder<Date> builder) |
Constructor and Description |
---|
CalendarCurrencyDateCalculator(CurrencyDateCalculatorBuilder<Calendar> builder) |
DateCurrencyDateCalculator(CurrencyDateCalculatorBuilder<Date> builder) |
Modifier and Type | Method and Description |
---|---|
static CurrencyDateCalculatorBuilder<LocalDate> |
LocalDateKitCalculatorsFactory.defaultCurrencyDateCalculatorBuilder(String ccy1,
String ccy2,
SpotLag spotLag) |
CurrencyDateCalculatorBuilder<LocalDate> |
LocalDateKitCalculatorsFactory.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; this
does NOT copy the calendars or Currency Config.
|
Modifier and Type | Method and Description |
---|---|
LocalDateCurrencyDateCalculator |
LocalDateKitCalculatorsFactory.buildCurrencyDateCalculator(CurrencyDateCalculatorBuilder<LocalDate> builder) |
Constructor and Description |
---|
LocalDateCurrencyDateCalculator(CurrencyDateCalculatorBuilder<LocalDate> builder) |
Modifier and Type | Method and Description |
---|---|
static CurrencyDateCalculatorBuilder<org.joda.time.LocalDate> |
LocalDateKitCalculatorsFactory.defaultCurrencyDateCalculatorBuilder(String ccy1,
String ccy2,
SpotLag spotLag) |
CurrencyDateCalculatorBuilder<org.joda.time.LocalDate> |
LocalDateKitCalculatorsFactory.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; .
|
Modifier and Type | Method and Description |
---|---|
LocalDateCurrencyDateCalculator |
LocalDateKitCalculatorsFactory.buildCurrencyDateCalculator(CurrencyDateCalculatorBuilder<org.joda.time.LocalDate> builder) |
Constructor and Description |
---|
LocalDateCurrencyDateCalculator(CurrencyDateCalculatorBuilder<org.joda.time.LocalDate> builder) |
Copyright © 2006–2022 Appendium - Portfolio Financing Platform. All rights reserved.