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.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 | Class and Description |
---|---|
class |
DefaultHolidayCalendar<E extends Serializable> |
class |
ImmutableHolidayCalendar<E>
This is an immutable holiday calendar, once given to a DateCalculator, a HolidayCalendar cannot be
modified, it will throw
UnsupportedOperationException . |
Modifier and Type | Method and Description |
---|---|
HolidayCalendar<E> |
CurrencyDateCalculatorBuilder.getCcy1Calendar() |
HolidayCalendar<E> |
CurrencyDateCalculatorBuilder.getCcy2Calendar() |
HolidayCalendar<E> |
CurrencyDateCalculatorBuilder.getCrossCcyCalendar() |
HolidayCalendar<E> |
DateCalculator.getHolidayCalendar()
Returns an immutable version of the HolidayCalendar.
|
HolidayCalendar<E> |
AbstractDateCalculator.getHolidayCalendar() |
HolidayCalendar<E> |
KitCalculatorsFactory.getHolidayCalendar(String calendarName) |
HolidayCalendar<E> |
AbstractKitCalculatorsFactory.getHolidayCalendar(String name)
Provides an immutable Holiday Calendar with that name if registered, null if not registered
|
HolidayCalendar<E> |
HolidayCalendar.setEarlyBoundary(E earlyBoundary)
Sets the earliest date (must be <= first date in holiday set)
|
HolidayCalendar<E> |
DefaultHolidayCalendar.setEarlyBoundary(E earlyBoundary) |
HolidayCalendar<E> |
ImmutableHolidayCalendar.setEarlyBoundary(E earlyBoundary) |
HolidayCalendar<E> |
HolidayCalendar.setHolidays(Set<E> holidays)
Takes a copy of the holidays and store it in an immutable
set.
|
HolidayCalendar<E> |
DefaultHolidayCalendar.setHolidays(Set<E> holidays) |
HolidayCalendar<E> |
ImmutableHolidayCalendar.setHolidays(Set<E> holidays) |
HolidayCalendar<E> |
HolidayCalendar.setLateBoundary(E lateBoundary)
Sets the latest date (must be <= first date in holiday set)
|
HolidayCalendar<E> |
DefaultHolidayCalendar.setLateBoundary(E lateBoundary) |
HolidayCalendar<E> |
ImmutableHolidayCalendar.setLateBoundary(E lateBoundary) |
static HolidayCalendar<Calendar> |
Utils.toHolidayCalendarSet(HolidayCalendar<Date> dates)
Converts a Set of Date objects to a Set of Calendar objects.
|
Modifier and Type | Method and Description |
---|---|
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.ccy2Calendar(HolidayCalendar<E> ccy2Calendar)
The holiday calendar for ccy2, if null or not set, then a default calendar will be used with NO holidays.
|
protected abstract DateCalculator<E> |
AbstractDateCalculator.createNewCalculator(String calcName,
E theStartDate,
HolidayCalendar<E> holidays,
HolidayHandler<E> handler) |
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.
|
KitCalculatorsFactory<E> |
KitCalculatorsFactory.registerHolidays(String calendarName,
HolidayCalendar<E> holidaysCalendar)
Use this method to register a holidays calendar.
|
KitCalculatorsFactory<E> |
AbstractKitCalculatorsFactory.registerHolidays(String name,
HolidayCalendar<E> holidaysCalendar)
Use this method to register a given calendar, it will replace any
existing one with the same name.
|
DateCalculator<E> |
DateCalculator.setHolidayCalendar(HolidayCalendar<E> calendar)
This is typically used at the construction of a DateCalculator to give a
reference to a Holiday Calendar, if not the case, the calculator will
make an immutable copy of the HolidayCalendar.
|
DateCalculator<E> |
AbstractDateCalculator.setHolidayCalendar(HolidayCalendar<E> calendar) |
static HolidayCalendar<Calendar> |
Utils.toHolidayCalendarSet(HolidayCalendar<Date> dates)
Converts a Set of Date objects to a Set of Calendar objects.
|
Constructor and Description |
---|
AbstractDateCalculator(String name,
HolidayCalendar<E> holidayCalendar,
HolidayHandler<E> holidayHandler) |
ImmutableHolidayCalendar(HolidayCalendar<E> delegate) |
Modifier and Type | Method and Description |
---|---|
protected DateCalculator<Calendar> |
CalendarDateCalculator.createNewCalculator(String name,
Calendar startDate,
HolidayCalendar<Calendar> holidays,
HolidayHandler<Calendar> handler) |
protected DateCalculator<Date> |
DateDateCalculator.createNewCalculator(String name,
Date startDate,
HolidayCalendar<Date> holidays,
HolidayHandler<Date> handler) |
Constructor and Description |
---|
CalendarDateCalculator(String name,
Calendar startDate,
HolidayCalendar<Calendar> holidayCalendar,
HolidayHandler<Calendar> holidayHandler) |
DateDateCalculator(String name,
Date startDate,
HolidayCalendar<Date> holidayCalendar,
HolidayHandler<Date> holidayHandler) |
Modifier and Type | Method and Description |
---|---|
protected DateCalculator<LocalDate> |
LocalDateCalculator.createNewCalculator(String name,
LocalDate startDate,
HolidayCalendar<LocalDate> holidays,
HolidayHandler<LocalDate> handler) |
Constructor and Description |
---|
LocalDateCalculator(String name,
LocalDate startDate,
HolidayCalendar<LocalDate> holidayCalendar,
HolidayHandler<LocalDate> holidayHandler) |
Modifier and Type | Method and Description |
---|---|
protected DateCalculator<org.joda.time.LocalDate> |
LocalDateCalculator.createNewCalculator(String name,
org.joda.time.LocalDate startDate,
HolidayCalendar<org.joda.time.LocalDate> holidays,
HolidayHandler<org.joda.time.LocalDate> handler) |
Constructor and Description |
---|
LocalDateCalculator(String name,
org.joda.time.LocalDate startDate,
HolidayCalendar<org.joda.time.LocalDate> holidayCalendar,
HolidayHandler<org.joda.time.LocalDate> holidayHandler) |
Copyright © 2006–2022 Appendium - Portfolio Financing Platform. All rights reserved.