Class FreeEasterRelativeDay
- All Implemented Interfaces:
ch.ivyteam.ivy.application.calendar.CalendarListEntry
,Comparable<ch.ivyteam.ivy.application.calendar.CalendarListEntry>
Free day relative to Easter Day.
A IBusinessCalendarConfiguration
can contain multiple
FreeEasterRelativeDay
s to define free days recurring every year
relative to Easter Day.
The days since easter are in a range from -82 to +250 where 0 is the easter day. Negative numbers define a day before Easter Day. Positive numbers define a day after Easter Day.
The range is limited as it is not allowed to define a relative day which is
earlier than the beginning of the year or later than the end of the year.
The last possible date for Easter Day is the 25. of April. Which leaves the
maximum of 250 days to the end of the year.
The earliest possible date for Easter Day is the 22. March. Which leaves the
maximum of -82 days to the beginning of the year.
- API:
- This is a public API.
-
Constructor Summary
ConstructorDescriptionFreeEasterRelativeDay
(int daysSinceEaster) FreeEasterRelativeDay
(int daysSinceEaster, String description) -
Method Summary
Modifier and TypeMethodDescriptionint
Returns the days since Easter Day.Returns the descriptionvoid
setDaysSinceEaster
(int daysSinceEaster) Sets the days since Easter Dayvoid
setDescription
(String description) Sets the description to the given parameter
-
Constructor Details
-
FreeEasterRelativeDay
public FreeEasterRelativeDay(int daysSinceEaster) - Parameters:
daysSinceEaster
- the days since Easter Day- Throws:
IllegalArgumentException
- ifdaysSinceEaster
is not in range- API:
- This public API is available in Java.
-
FreeEasterRelativeDay
- Parameters:
daysSinceEaster
- the days since Easter Daydescription
- the description- Throws:
IllegalArgumentException
- ifdaysSinceEaster
is not in range ordescription
is null- API:
- This public API is available in Java.
-
-
Method Details
-
getDescription
Returns the description- Returns:
- the description
- API:
- This public API is available in Java.
-
setDescription
Sets the description to the given parameter- Parameters:
description
- the description to set- API:
- This public API is available in Java.
-
getDaysSinceEaster
public int getDaysSinceEaster()Returns the days since Easter Day.
- Returns:
- the days since Easter Day
- API:
- This public API is available in Java.
-
setDaysSinceEaster
public void setDaysSinceEaster(int daysSinceEaster) Sets the days since Easter Day- Parameters:
daysSinceEaster
- the days since Easter Day to set- Throws:
IllegalArgumentException
- ifdaysSinceEaster
is out of range- API:
- This public API is available in Java.
-