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

public class ColumbusDay extends Object implements Observance
Observance of Columbus Day - a federal holiday in the United States which officially celebrates the anniversary of the arrival of Christopher Columbus in the Americas on October 12, 1492. Since 1971, this holiday has been observed on the second Monday in October.
Author:
Dave Joyce
  • Constructor Details

    • ColumbusDay

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