java.lang.Object
org.holiday.calendar.observance.AbstractObservance
org.holiday.calendar.observance.eu.MayDay
Observance of May Day - an ancient festival marking the first day of summer.
It is a current traditional spring holiday in many European cultures that is
celebrated as a public holiday on 1 May or the 1st Monday of May.
In modern times, May Day is also celebrated as International Workers' Day in many countries around the world, where it is commonly known as Labour Day.
- Author:
- Dave Joyce
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected LocalDatecomputeDate(int year) Compute the date for this observance in the given year.Methods inherited from class org.holiday.calendar.observance.AbstractObservance
apply, isValidYear, test
-
Constructor Details
-
MayDay
public MayDay(boolean onFirstMonday) -
MayDay
public MayDay()
-
-
Method Details
-
computeDate
Description copied from class:AbstractObservanceCompute the date for this observance in the given year. Only called whenAbstractObservance.isValidYear(int)returnstrue.- Specified by:
computeDatein classAbstractObservance- Parameters:
year- the year for which to compute the date- Returns:
- computed holiday date
-