Interface MonthData
public interface MonthData
Model class for data of a single month containing year, month, day data etc.
-
Method Summary
Modifier and TypeMethodDescriptiongetDays()Get theDayDatas in this month.getMonth()Get theMonth.Get the duration of the previous month's overtime.intgetYear()Get the year of this month.voidSet theDayDatas in this month.voidSet a newMonth.voidsetOvertimePreviousMonth(Duration overtimePreviousMonth) Set the duration of the previous month's overtime.voidsetYear(int year) Set the year of this month.
-
Method Details
-
getYear
int getYear()Get the year of this month.- Returns:
- the year of this month.
-
setYear
void setYear(int year) Set the year of this month.- Parameters:
year- the new year.
-
getMonth
Month getMonth()Get theMonth.- Returns:
- the
Month.
-
setMonth
Set a newMonth.- Parameters:
month- the newMonth.
-
getOvertimePreviousMonth
Duration getOvertimePreviousMonth()Get the duration of the previous month's overtime.- Returns:
- the duration of the previous month's overtime.
-
setOvertimePreviousMonth
Set the duration of the previous month's overtime.- Parameters:
overtimePreviousMonth- the new duration of the previous month's overtime.
-
getDays
Get theDayDatas in this month.- Returns:
- the
DayDatas in this month.
-
setDays
Set theDayDatas in this month.- Parameters:
days- the newDayDatas.
-