Interface Schedule
-
- All Implemented Interfaces:
public interface Schedule
-
-
Method Summary
Modifier and Type Method Description Booleancontains(LocalDateTime dateTime)Allows to answer if current schedule contains given point of time Booleancontains(Long timeMillis)abstract LongtimeMsUntilTargetTimeIntervalStart(LocalDateTime dateTime)abstract LongtimeMsUntilTargetTimeIntervalStart(Long timeMillis)abstract LongtimeMsUntilTargetTimeIntervalEnd(LocalDateTime dateTime)abstract LongtimeMsUntilTargetTimeIntervalEnd(Long timeMillis)-
-
Method Detail
-
contains
Boolean contains(LocalDateTime dateTime)
Allows to answer if current schedule contains given point of time
-
timeMsUntilTargetTimeIntervalStart
abstract Long timeMsUntilTargetTimeIntervalStart(LocalDateTime dateTime)
- Returns:
non-positive value as an indication that given point of time is already covered by the current schedule; a positive value of milliseconds remaining for the closest time window defined by the current schedule
-
timeMsUntilTargetTimeIntervalStart
abstract Long timeMsUntilTargetTimeIntervalStart(Long timeMillis)
- Returns:
non-positive value as an indication that given point of time is already covered by the current schedule; a positive value of milliseconds remaining for the closest time window defined by the current schedule
-
timeMsUntilTargetTimeIntervalEnd
abstract Long timeMsUntilTargetTimeIntervalEnd(LocalDateTime dateTime)
- Returns:
non-positive value as an indication that given point of time is not within the current schedule; a positive value of milliseconds remaining until the target active time interval end
-
timeMsUntilTargetTimeIntervalEnd
abstract Long timeMsUntilTargetTimeIntervalEnd(Long timeMillis)
- Returns:
non-positive value as an indication that given point of time is not within the current schedule; a positive value of milliseconds remaining until the target active time interval end
-
-
-
-