Class WorktimeSlotValue

java.lang.Object
com.bytedesk.service.worktime_settings.WorktimeSlotValue
All Implemented Interfaces:
Serializable

public class WorktimeSlotValue extends Object implements Serializable
Lightweight value object representing a single worktime window.
See Also:
  • Field Details

    • serialVersionUID

      private static final long serialVersionUID
      See Also:
    • startTime

      private String startTime
    • endTime

      private String endTime
    • workDays

      private String workDays
      Comma separated day-of-week values (1-7) where 1 represents Monday.
  • Constructor Details

    • WorktimeSlotValue

      public WorktimeSlotValue()
  • Method Details

    • isActive

      public boolean isActive(LocalDate date, LocalTime time)
      Check whether the supplied date/time falls inside this slot.
    • matchesDay

      private boolean matchesDay(LocalDate date)