java.lang.Object
org.holiday.calendar.observance.AbstractObservance
org.holiday.calendar.observance.de.NewYearsEve
All Implemented Interfaces:
Function<Integer,LocalDate>, Predicate<Integer>, Observance

public class NewYearsEve extends AbstractObservance
Observance of Xetra/Frankfurt Stock Exchange's New Year's Eve full non-trading day (December 31, an "Erfüllungstag"/settlement day). Mirrors ChristmasEve's suppression semantics: omitted entirely (not shifted) in years December 31 falls on a Saturday or Sunday, since Xetra/FWB is simply not a trading day at all on weekends.

Verified against Deutsche Börse's official Xetra-Handelskalender (cashmarket.deutsche-boerse.com), 2023-2026.

Author:
Dave Joyce
  • Constructor Details

    • NewYearsEve

      public NewYearsEve()
  • Method Details

    • computeDate

      protected LocalDate computeDate(int year)
      Description copied from class: AbstractObservance
      Compute the date for this observance in the given year. Only called when AbstractObservance.isValidYear(int) returns true.
      Specified by:
      computeDate in class AbstractObservance
      Parameters:
      year - the year for which to compute the date
      Returns:
      computed holiday date
    • isValidYear

      protected boolean isValidYear(int year)
      Description copied from class: AbstractObservance
      Determine whether this observance applies in the given year. Defaults to true (all years are valid).
      Overrides:
      isValidYear in class AbstractObservance
      Parameters:
      year - the year to test
      Returns:
      true if this observance applies