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

public class FamilyDay extends Object implements Observance
Observance of Family Day - a widely-celebrated regional holiday in Canada for spending time with families and emphasizing the importance of family values. The date was chosen to coincide with Washington's Birthday, in order to avoid disrupting trade with the United States. This holiday always falls on the third Monday in February.
Author:
Dave Joyce
  • Constructor Details

    • FamilyDay

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