-
- All Implemented Interfaces:
-
tech.harmonysoft.oss.common.time.schedule.Schedule
public final class ScheduleImpl implements Schedule
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public classScheduleImpl.Companion
-
Field Summary
Fields Modifier and Type Field Description private final ClockProviderclockProviderprivate final Collection<DaysOfWeekTimeWindows>dayTimeWindows
-
Constructor Summary
Constructors Constructor Description ScheduleImpl(ClockProvider clockProvider, Collection<DaysOfWeekTimeWindows> dayTimeWindows)
-
Method Summary
Modifier and Type Method Description final ClockProvidergetClockProvider()final Collection<DaysOfWeekTimeWindows>getDayTimeWindows()LongtimeMsUntilTargetTimeIntervalStart(LocalDateTime dateTime)LongtimeMsUntilTargetTimeIntervalStart(Long timeMillis)LongtimeMsUntilTargetTimeIntervalEnd(LocalDateTime dateTime)LongtimeMsUntilTargetTimeIntervalEnd(Long timeMillis)-
-
Constructor Detail
-
ScheduleImpl
ScheduleImpl(ClockProvider clockProvider, Collection<DaysOfWeekTimeWindows> dayTimeWindows)
-
-
Method Detail
-
getClockProvider
final ClockProvider getClockProvider()
-
getDayTimeWindows
final Collection<DaysOfWeekTimeWindows> getDayTimeWindows()
-
timeMsUntilTargetTimeIntervalStart
Long timeMsUntilTargetTimeIntervalStart(LocalDateTime dateTime)
-
timeMsUntilTargetTimeIntervalStart
Long timeMsUntilTargetTimeIntervalStart(Long timeMillis)
-
timeMsUntilTargetTimeIntervalEnd
Long timeMsUntilTargetTimeIntervalEnd(LocalDateTime dateTime)
-
timeMsUntilTargetTimeIntervalEnd
Long timeMsUntilTargetTimeIntervalEnd(Long timeMillis)
-
-
-
-