java.lang.Object
org.holiday.calendar.observance.AbstractObservance
org.holiday.calendar.observance.de.ChristmasEve
Observance of Xetra/Frankfurt Stock Exchange's Christmas Eve full non-trading
day (December 24, an "Erfüllungstag"/settlement day). Unlike
org.holiday.calendar.observance.uk.ChristmasEveEarlyClose — which
always occurs, shifting to the preceding Friday on a weekend — Xetra/FWB is
simply not a trading day at all on weekends, so December 24 is omitted
entirely (not shifted) in years it falls on a Saturday or Sunday. This
mirrors org.holiday.calendar.observance.ca.ChristmasEveEarlyClose's
suppression semantics, applied here to a FLOATING full-day holiday
rather than an EARLY_CLOSE.
Verified against Deutsche Börse's official Xetra-Handelskalender (cashmarket.deutsche-boerse.com), 2023-2026.
- Author:
- Dave Joyce
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected LocalDatecomputeDate(int year) Compute the date for this observance in the given year.protected booleanisValidYear(int year) Determine whether this observance applies in the given year.Methods inherited from class org.holiday.calendar.observance.AbstractObservance
apply, test
-
Constructor Details
-
ChristmasEve
public ChristmasEve()
-
-
Method Details
-
computeDate
Description copied from class:AbstractObservanceCompute the date for this observance in the given year. Only called whenAbstractObservance.isValidYear(int)returnstrue.- Specified by:
computeDatein classAbstractObservance- Parameters:
year- the year for which to compute the date- Returns:
- computed holiday date
-
isValidYear
protected boolean isValidYear(int year) Description copied from class:AbstractObservanceDetermine whether this observance applies in the given year. Defaults totrue(all years are valid).- Overrides:
isValidYearin classAbstractObservance- Parameters:
year- the year to test- Returns:
trueif this observance applies
-