Class ComingOfAgeDay

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

public class ComingOfAgeDay extends AbstractObservance
Observance of Coming of Age Day (成人の日) — a Japanese national holiday honouring those who have reached the age of majority.

Historical rule changes:

  • 1948–1999: fixed on January 15
  • 2000+: 2nd Monday in January (Happy Monday System)
  • Constructor Details

    • ComingOfAgeDay

      public ComingOfAgeDay()
  • 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