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 |
AbstractDateCalculator<E extends Serializable>
Abstract implementation in order to encapsulate all the common functionality
between Jdk and Joda implementations.
|
Modifier and Type | Method and Description |
---|---|
protected DateCalculator<E> |
AbstractDateCalculator.applyTenor(TenorCode tenorCode,
int unit) |
DateCalculator<E> |
DateCalculator.combine(DateCalculator<E> calculator)
Allows DateCalculators to be combined into a new one, the startDate and
currentBusinessDate will be the ones from the existing calendar (not the
parameter one).
|
DateCalculator<E> |
AbstractDateCalculator.combine(DateCalculator<E> calculator)
Allows DateCalculators to be combined into a new one, the startDate and
currentBusinessDate will be the ones from the existing calendar (not the
parameter one).
|
protected abstract DateCalculator<E> |
AbstractDateCalculator.createNewCalculator(String calcName,
E theStartDate,
HolidayCalendar<E> holidays,
HolidayHandler<E> handler) |
DateCalculator<E> |
KitCalculatorsFactory.getDateCalculator(String name,
String holidayHandlerType)
Create a new DateCalculator for a given name and type of handling.
|
DateCalculator<E> |
DateCalculator.moveByBusinessDays(int businessDays)
This changes the current business date held in the calculator, it moves
the current date by a number of business days, this means that if a date
is either a 'weekend' or holiday along the way, it will be skipped
according to the holiday handler and not count towards the number of days
to move.
|
DateCalculator<E> |
AbstractDateCalculator.moveByBusinessDays(int businessDays) |
DateCalculator<E> |
DateCalculator.moveByDays(int days)
This changes the current business date held in the calculator, it moves
the new current business date by the number of days and, if it falls on a
weekend or holiday, moves it further according to the HolidayHandler
given in this DateCalculator.
|
protected abstract DateCalculator<E> |
AbstractDateCalculator.moveByMonths(int months) |
DateCalculator<E> |
DateCalculator.moveByTenor(Tenor tenor)
Move the current date by a given tenor, please note that all tenors are
relative to the CURRENT day (and NOT from spot).
|
DateCalculator<E> |
AbstractDateCalculator.moveByTenor(Tenor tenor)
Move the current date by a given tenor, please note that all tenors are
relative to the CURRENT day (and NOT from spot).
|
DateCalculator<E> |
DateCalculator.moveByTenor(Tenor tenor,
int spotLag)
Move the current date by a given tenor, please note that all tenors are
relative to the SPOT day which is a number of days from the current date.
|
DateCalculator<E> |
AbstractDateCalculator.moveByTenor(Tenor tenor,
int spotLag)
move the current date by a given tenor, this means that if a date is
either a 'weekend' or holiday, it will be skipped according to the holiday
handler and not count towards the number of days to move.
|
DateCalculator<E> |
DateCalculator.setCurrentIncrement(int increment)
This would be used by delegate methods to detect if the increment
if positive or negative (this will allow us to define a Handler
that can act as Forward if positive and Backward if negative).
|
DateCalculator<E> |
AbstractDateCalculator.setCurrentIncrement(int currentIncrement) |
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) |
DateCalculator<E> |
AbstractDateCalculator.setHolidayHandler(HolidayHandler<E> holidayHandler) |
DateCalculator<E> |
DateCalculator.setStartDate(E startDate)
Setting the start date also sets the current business date (and if this
is a non-working day, the current business date will be moved to the next
business day according to the HolidayHandler algorithm given).
|
DateCalculator<E> |
AbstractDateCalculator.setStartDate(E startDate)
Set both start date and current date
|
DateCalculator<E> |
DateCalculator.setWorkingWeek(WorkingWeek week)
Allows user to define what their Working Week should be (default is
Mon-Fri).
|
Modifier and Type | Method and Description |
---|---|
DateCalculator<E> |
DateCalculator.combine(DateCalculator<E> calculator)
Allows DateCalculators to be combined into a new one, the startDate and
currentBusinessDate will be the ones from the existing calendar (not the
parameter one).
|
DateCalculator<E> |
AbstractDateCalculator.combine(DateCalculator<E> calculator)
Allows DateCalculators to be combined into a new one, the startDate and
currentBusinessDate will be the ones from the existing calendar (not the
parameter one).
|
protected void |
AbstractKitCalculatorsFactory.setHolidays(String name,
DateCalculator<E> dc)
Used by extensions to set holidays in a DateCalculator.
|
Modifier and Type | Class and Description |
---|---|
class |
CalendarDateCalculator
This class is used via the DateCalculator interface, it enables the handling
of different HolidayHandler, if no HolidayHandler is defined, the calendar
will NOT move a date, even if it falls on a holiday or weekend.
|
class |
DateDateCalculator
This class is used via the DateCalculator interface, it enables the handling
of different HolidayHandler, if no HolidayHandler is defined, the calendar
will NOT move a date, even if it falls on a holiday or weekend.
|
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) |
DateCalculator<Date> |
DateDateCalculator.moveByDays(int days) |
protected DateCalculator<Date> |
DateDateCalculator.moveByMonths(int months) |
DateCalculator<Calendar> |
CalendarDateCalculator.moveByMonths(int months) |
DateCalculator<Date> |
DateDateCalculator.setStartDate(Date startDate) |
DateCalculator<Date> |
DateDateCalculator.setWorkingWeek(WorkingWeek week) |
DateCalculator<Calendar> |
CalendarDateCalculator.setWorkingWeek(WorkingWeek week) |
Modifier and Type | Method and Description |
---|---|
protected DateCalculator<LocalDate> |
LocalDateCalculator.createNewCalculator(String name,
LocalDate startDate,
HolidayCalendar<LocalDate> holidays,
HolidayHandler<LocalDate> handler) |
DateCalculator<LocalDate> |
LocalDateCalculator.moveByDays(int days) |
DateCalculator<LocalDate> |
LocalDateCalculator.moveByMonths(int months) |
DateCalculator<LocalDate> |
LocalDateCalculator.setWorkingWeek(WorkingWeek week)
Set the working week.
|
Modifier and Type | Class and Description |
---|---|
class |
LocalDateCalculator
This class is used via the DateCalculator interface, it enables the handling
of different HolidayHandler, if no HolidayHandler is defined, the calendar
will NOT move a date, even if it falls on a holiday or weekend.
|
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) |
DateCalculator<org.joda.time.LocalDate> |
LocalDateCalculator.moveByDays(int days) |
DateCalculator<org.joda.time.LocalDate> |
LocalDateCalculator.moveByMonths(int months) |
DateCalculator<org.joda.time.LocalDate> |
LocalDateCalculator.setWorkingWeek(WorkingWeek week)
Set the working week.
|
Copyright © 2006–2022 Appendium - Portfolio Financing Platform. All rights reserved.