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

public class PresidentsDay extends Object implements Observance
Observance of Presidents' Day - a federal holiday in the United States that honors all persons who served in the office of President of the United States. Officially Washington's Birthday, this holiday was celebrated on February 22 from 1879 to 1970. As of 1971, this holiday always falls on the third Monday in February.
Author:
Dave Joyce
  • Constructor Details

    • PresidentsDay

      public PresidentsDay()
  • Method Details

    • apply

      public LocalDate apply(Integer year)
      Specified by:
      apply in interface Function<Integer,LocalDate>
    • test

      public boolean test(Integer year)
      Description copied from interface: Observance
      Determines whether this observance applies to the specified year.
      Specified by:
      test in interface Observance
      Specified by:
      test in interface Predicate<Integer>
      Parameters:
      year - year of potential observance
      Returns:
      true if the input year applies for this observance, otherwise false