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
WorkingTime
s.
For example 08:00-12:00 and 13:00-17:00
WorkingTime
s can overlap.
For Example 08:00 - 11:00 and 10:00 - 12:00.
WorkingTime
s can embed other WorkingTime
s.
For Example 08:00 - 11:00 and 9:00 - 10:00.
- API:
- This is a public API.
-
Constructor Summary
ConstructorDescriptionWorkingTime
(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.void
setDescription
(String description) Sets the description to the given parametervoid
Sets the end of the working time.void
Sets 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
- ifstart
orend
is 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
,end
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.
-
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
- ifstart
is 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
- ifend
is null- API:
- This public API is available in Java.
-