public class BusinessCalendar
A business calendar performs date calculations that take into account national holidays and weekends. This is a typical feature of financial contracts, in which a business may not want a payment event to fall on a day when no staff are around to handle problems.
Modifier and Type | Class and Description |
---|---|
static class |
BusinessCalendar.Companion |
Modifier and Type | Field and Description |
---|---|
static BusinessCalendar.Companion |
Companion |
Modifier and Type | Method and Description |
---|---|
java.time.LocalDate |
applyRollConvention(java.time.LocalDate testDate,
DateRollConvention dateRollConvention) |
boolean |
equals(java.lang.Object other) |
java.util.List<java.time.LocalDate> |
getHolidayDates() |
int |
hashCode() |
boolean |
isWorkingDay(java.time.LocalDate date) |
java.time.LocalDate |
moveBusinessDays(java.time.LocalDate date,
DateRollDirection direction,
int i)
Returns a date which is the inbound date plus/minus a given number of business days.
TODO: Make more efficient if necessary
|
public static BusinessCalendar.Companion Companion
public boolean equals(java.lang.Object other)
public int hashCode()
public boolean isWorkingDay(java.time.LocalDate date)
public java.time.LocalDate applyRollConvention(java.time.LocalDate testDate, DateRollConvention dateRollConvention)
public java.time.LocalDate moveBusinessDays(java.time.LocalDate date, DateRollDirection direction, int i)
Returns a date which is the inbound date plus/minus a given number of business days. TODO: Make more efficient if necessary
public java.util.List<java.time.LocalDate> getHolidayDates()