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

public class LaborDay extends Object implements Observance
Observance of Labor Day - a federal holiday in the United States that occurs on the first Monday in September. One of several Labour Day celebrations that occur worldwide, the American observance occurs on the same day as Labour Day in Canada.
Author:
Dave Joyce
See Also:
  • Constructor Details

    • LaborDay

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