Class RecurrentHoliday

java.lang.Object
org.cswteams.ms3.entity.RecurrentHoliday

@Entity public class RecurrentHoliday extends Object
This entity models a recurring holiday, i.e. an holiday that is repeated each year on the same day(s).
  • 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

      public Holiday toHolidayOfYear(int year)
      Get an Holiday object related to this recurring holiday, i.e. a single occurrence of the recurring holiday, for the specified year.
      Parameters:
      year - year for which the Holiday object is needed
      Returns:
      a Holiday object, as istance of the recurring holiday for the year year.