public class DefaultWorkCalendar extends java.lang.Object implements WorkCalendar
| Constructor and Description |
|---|
DefaultWorkCalendar() |
| Modifier and Type | Method and Description |
|---|---|
java.util.Date |
addWorkTime(java.util.Date date,
long afterSeconds)
Returns the new date according to the schedule.
|
java.time.ZonedDateTime |
addWorkTime(java.time.ZonedDateTime date,
long afterSeconds)
Returns the new date according to the schedule.
|
int |
getId() |
java.util.Date |
getNextWorkDateTime(java.util.Date date)
Returns the new date according to the schedule.
|
java.time.ZonedDateTime |
getNextWorkDateTime(java.time.ZonedDateTime date)
Returns the new date according to the schedule.
|
long |
getWorkTimeBetweenDates(java.util.Date start,
java.util.Date finish)
Counts time according to a schedule between dates.
|
long |
getWorkTimeBetweenDates(java.time.ZonedDateTime start,
java.time.ZonedDateTime finish)
Counts time according to a schedule between dates.
|
java.lang.String |
getZoneId() |
boolean |
isWorkingTime(java.util.Date localDateTime)
Checks the date according to the schedule.
|
boolean |
isWorkingTime(java.time.ZonedDateTime localDateTime)
Checks the date according to the schedule.
|
public int getId()
getId in interface WorkCalendarpublic long getWorkTimeBetweenDates(@Nonnull
java.util.Date start,
@Nonnull
java.util.Date finish)
throws com.jibrok.jira.plugins.timeinstatus.calendar.exception.CalendarException
WorkCalendarreturn time in seconds.
getWorkTimeBetweenDates in interface WorkCalendarcom.jibrok.jira.plugins.timeinstatus.calendar.exception.CalendarExceptionpublic java.util.Date addWorkTime(@Nonnull
java.util.Date date,
long afterSeconds)
throws com.jibrok.jira.plugins.timeinstatus.calendar.exception.CalendarException
WorkCalendaraddWorkTime in interface WorkCalendarcom.jibrok.jira.plugins.timeinstatus.calendar.exception.CalendarExceptionpublic java.util.Date getNextWorkDateTime(@Nonnull
java.util.Date date)
throws com.jibrok.jira.plugins.timeinstatus.calendar.exception.CalendarException
WorkCalendargetNextWorkDateTime in interface WorkCalendarcom.jibrok.jira.plugins.timeinstatus.calendar.exception.CalendarExceptionpublic boolean isWorkingTime(java.util.Date localDateTime)
throws com.jibrok.jira.plugins.timeinstatus.calendar.exception.CalendarException
WorkCalendarisWorkingTime in interface WorkCalendarcom.jibrok.jira.plugins.timeinstatus.calendar.exception.CalendarExceptionpublic long getWorkTimeBetweenDates(@Nonnull
java.time.ZonedDateTime start,
@Nonnull
java.time.ZonedDateTime finish)
WorkCalendarreturn time in seconds.
getWorkTimeBetweenDates in interface WorkCalendarpublic java.time.ZonedDateTime addWorkTime(@Nonnull
java.time.ZonedDateTime date,
long afterSeconds)
WorkCalendaraddWorkTime in interface WorkCalendarpublic java.time.ZonedDateTime getNextWorkDateTime(@Nonnull
java.time.ZonedDateTime date)
throws com.jibrok.jira.plugins.timeinstatus.calendar.exception.CalendarException
WorkCalendargetNextWorkDateTime in interface WorkCalendarcom.jibrok.jira.plugins.timeinstatus.calendar.exception.CalendarExceptionpublic boolean isWorkingTime(java.time.ZonedDateTime localDateTime)
WorkCalendarisWorkingTime in interface WorkCalendarpublic java.lang.String getZoneId()
getZoneId in interface WorkCalendar