Package org.cswteams.ms3.entity
Class RecurrentHoliday
java.lang.Object
org.cswteams.ms3.entity.RecurrentHoliday
This entity models a recurring holiday,
i.e. an holiday that is repeated each year on the same day(s).
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedDefault constructor needed by LombokRecurrentHoliday(String name, HolidayCategory category, int startDay, int startMonth, int endDay, int endMonth, String location) -
Method Summary
Modifier and TypeMethodDescriptiontoHolidayOfYear(int year) Get anHolidayobject related to this recurring holiday, i.e. a single occurrence of the recurring holiday, for the specified year.
-
Constructor Details
-
RecurrentHoliday
protected RecurrentHoliday()Default constructor needed by Lombok -
RecurrentHoliday
public RecurrentHoliday(String name, HolidayCategory category, int startDay, int startMonth, int endDay, int endMonth, String location)
-
-
Method Details
-
toHolidayOfYear
Get anHolidayobject related to this recurring holiday, i.e. a single occurrence of the recurring holiday, for the specified year.- Parameters:
year- year for which theHolidayobject is needed- Returns:
- a
Holidayobject, as istance of the recurring holiday for the yearyear.
-