Module org.holiday.calendar.apac
Class AutumnalEquinoxDay
java.lang.Object
org.holiday.calendar.observance.AbstractObservance
org.holiday.calendar.observance.jp.AutumnalEquinoxDay
Observance of Autumnal Equinox Day (秋分の日) — a Japanese national holiday
observed on the day of the astronomical autumnal equinox in Japan Standard Time.
The exact date (September 22 or 23) is computed using the formula published by the National Astronomical Observatory of Japan (NAOJ) and is valid for years 1980–2099.
-
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
-
AutumnalEquinoxDay
public AutumnalEquinoxDay()
-
-
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
-