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

public class EuropeDay extends Object implements Observance
Observance of Europe Day - a day celebrating "peace and unity in Europe" celebrated on 5 May by the Council of Europe and on 9 May by the European Union.
Author:
Dave Joyce
  • Constructor Details

    • EuropeDay

      public EuropeDay(boolean europeanUnion)
    • EuropeDay

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