Class FreeDayOfWeek
java.lang.Object
ch.ivyteam.ivy.application.calendar.FreeDayOfWeek
- All Implemented Interfaces:
ch.ivyteam.ivy.application.calendar.CalendarListEntry
,Comparable<ch.ivyteam.ivy.application.calendar.CalendarListEntry>
public final class FreeDayOfWeek
extends Object
implements ch.ivyteam.ivy.application.calendar.CalendarListEntry
A free day recurring every week.
A
IBusinessCalendarConfiguration
can contain multiple FreeDayOfWeek
s to define
free days recurring every week, usually the weekend.- API:
- This is a public API.
-
Constructor Summary
ConstructorDescriptionFreeDayOfWeek
(Weekday dayOfWeek) FreeDayOfWeek
(Weekday dayOfWeek, String description) -
Method Summary
Modifier and TypeMethodDescriptionReturns the day of the weekReturns the descriptionvoid
setDayOfWeek
(Weekday dayOfWeek) Sets the day of the week to the given parametervoid
setDescription
(String description) Sets the description to the given parameter
-
Constructor Details
-
FreeDayOfWeek
- Parameters:
dayOfWeek
- the day of the week- Throws:
IllegalArgumentException
- ifdayOfWeek
is null- API:
- This public API is available in Java.
-
FreeDayOfWeek
- Parameters:
dayOfWeek
- the day of the weekdescription
- the description- Throws:
IllegalArgumentException
- ifdayOfWeek
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.
-
getDayOfWeek
Returns the day of the week- Returns:
- the day of the week. Never null
- API:
- This public API is available in Java.
-
setDayOfWeek
Sets the day of the week to the given parameter- Parameters:
dayOfWeek
- the day of week to set- Throws:
IllegalArgumentException
- ifdayOfWeek
is null- API:
- This public API is available in Java.
-