Interface DayData
public interface DayData
Model class representing a day with date, time for begin and end of work,
activities etc.
-
Method Summary
Modifier and TypeMethodDescriptiongetBegin()getDate()getEnd()getType()voidsetActivities(List<ActivityData> activities) Set theActivityDatas for this day.voidSet the begin time for this day.voidsetComment(String comment) Set the comment for this day.voidSet the date for this day.voidSet the end time for this day.voidsetInterruption(Duration interruption) Set the duration of the interruption for this day.voidSet theDayTypefor this day.voidsetWorkingHours(Duration workingHours) Set the working hours for this day.
-
Method Details
-
getDate
LocalDate getDate()- Returns:
- the date of this day.
-
getType
DayType getType()- Returns:
- the
DayTypeof this day.
-
getBegin
LocalTime getBegin()- Returns:
- the begin working time of this day.
-
getEnd
LocalTime getEnd()- Returns:
- the end working time of this day.
-
getInterruption
Duration getInterruption()- Returns:
- the duration of the interruption of this day.
-
getWorkingHours
Duration getWorkingHours()- Returns:
- the working hours of this day.
-
getComment
String getComment()- Returns:
- the comment of this day.
-
setDate
Set the date for this day.- Parameters:
date- the new date.
-
setType
Set theDayTypefor this day.- Parameters:
type- the newDayType.
-
setBegin
Set the begin time for this day.- Parameters:
begin- the new begin time.
-
setEnd
Set the end time for this day.- Parameters:
end- the new end time.
-
setWorkingHours
Set the working hours for this day.- Parameters:
workingHours- the new working hours.
-
setComment
Set the comment for this day.- Parameters:
comment- the new comment.
-
setInterruption
Set the duration of the interruption for this day.- Parameters:
interruption- the new duration of the interruption.
-
getActivities
List<ActivityData> getActivities()- Returns:
- the
ActivityDatas for this day.
-
setActivities
Set theActivityDatas for this day.- Parameters:
activities- new new activities.
-