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

public class MemorialDay extends Object implements Observance
Observance of Memorial Day - a federal holiday in the United States for mourning all US military personnel who died while serving in the United States armed forces. Originally called Decoration Day, this holiday was celebrated on May 30 from 1868 to 1970. As of 1971, this holiday always falls on the last Monday in May.
Author:
Dave Joyce
  • Constructor Details

    • MemorialDay

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