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 TypeMethodDescriptionGet the theActivityDatas for this day.getBegin()Get the begin working time of this day.Get the comment of this day.getDate()Get the date of this day.getEnd()Get the end working time of this day.Get the duration of the interruption of this day.getType()Get theDayTypeof this day.Get the working hours of this day.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()Get the date of this day.- Returns:
- the date of this day.
-
getType
DayType getType()Get theDayTypeof this day.- Returns:
- the
DayTypeof this day.
-
getBegin
LocalTime getBegin()Get the begin working time of this day.- Returns:
- the begin working time of this day.
-
getEnd
LocalTime getEnd()Get the end working time of this day.- Returns:
- the end working time of this day.
-
getInterruption
Duration getInterruption()Get the duration of the interruption of this day.- Returns:
- the duration of the interruption of this day.
-
getWorkingHours
Duration getWorkingHours()Get the working hours of this day.- Returns:
- the working hours of this day.
-
getComment
String getComment()Get the comment of this day.- 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()Get the theActivityDatas for this day.- Returns:
- the
ActivityDatas for this day.
-
setActivities
Set theActivityDatas for this day.- Parameters:
activities- new new activities.
-