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

public class FamilyDayCAD extends Object implements Observance
Observance of Family Day as a federal Bank Act statutory holiday - the third Monday in February. This observance reflects the federal adoption of Family Day, which was first observed by federally regulated institutions (including the Bank of Canada) on 11 February 2013.

This class is distinct from FamilyDay, which models the earlier provincial Alberta adoption (1990). For the Bank of Canada Lynx settlement calendar, the 2013 federal start date is authoritative.

Author:
Dave Joyce
See Also:
  • Constructor Details

    • FamilyDayCAD

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