Class WorkingTime
java.lang.Object
ch.ivyteam.ivy.application.calendar.WorkingTime
- All Implemented Interfaces:
ch.ivyteam.ivy.application.calendar.CalendarListEntry,Comparable<ch.ivyteam.ivy.application.calendar.CalendarListEntry>
public final class WorkingTime
extends Object
implements ch.ivyteam.ivy.application.calendar.CalendarListEntry
Defines a time span during the day when work is done.
A IBusinessCalendarConfiguration can contain multiple
WorkingTimes.
For example 08:00-12:00 and 13:00-17:00
WorkingTimes can overlap.
For Example 08:00 - 11:00 and 10:00 - 12:00.
WorkingTimes can embed other WorkingTimes.
For Example 08:00 - 11:00 and 9:00 - 10:00.
- API:
- This is a public API.
-
Constructor Summary
ConstructorsConstructorDescriptionWorkingTime(Time start, Time end) WorkingTime(Time start, Time end, String description) -
Method Summary
Modifier and TypeMethodDescriptionReturns the descriptiongetEnd()Returns the end of the working time.getStart()Returns start of the working time.voidsetDescription(String description) Sets the description to the given parametervoidSets the end of the working time.voidSets the start of the working time.
-
Constructor Details
-
WorkingTime
- Parameters:
start- the start of the working time. Never null.end- the end of the working time. Never null.- Throws:
IllegalArgumentException- ifstartorendis null.- API:
- This public API is available in Java.
-
WorkingTime
- Parameters:
start- the start of the working time. Never null.end- the end of the working time. Never null.description- the description- Throws:
IllegalArgumentException- ifstart,endordescriptionis 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.
-
getStart
Returns start of the working time.- Returns:
- the start. Never null.
- API:
- This public API is available in Java.
-
setStart
Sets the start of the working time.- Parameters:
start- the start to set. Never null.- Throws:
IllegalArgumentException- ifstartis null.- API:
- This public API is available in Java.
-
getEnd
Returns the end of the working time.- Returns:
- the end. Never null.
- API:
- This public API is available in Java.
-
setEnd
Sets the end of the working time.- Parameters:
end- the end to set. Never null.- Throws:
IllegalArgumentException- ifendis null- API:
- This public API is available in Java.
-