Class HighLoadTimeslot

    • Constructor Detail

      • HighLoadTimeslot

        public HighLoadTimeslot()
    • Method Detail

      • isActiveWeekday

        protected static boolean isActiveWeekday​(WeekdayFilter activeDayFilter,
                                                 java.time.LocalDateTime dateTime)
        Is 'dateTime' within the ActiveWeekdayFilter?.
        Parameters:
        activeDayFilter - the WeekdayFilter
        dateTime - the current LocalDateTime
        Returns:
        true on yes
      • isActiveDate

        protected static boolean isActiveDate​(java.time.LocalDate startDate,
                                              java.time.LocalDate endDate,
                                              java.time.LocalDateTime dateTime)
      • isActiveTime

        protected static boolean isActiveTime​(java.time.LocalTime startTime,
                                              java.time.LocalTime endTime,
                                              java.time.LocalDateTime dateTime)
        Is the time of 'dateTime' within startTime and endTime?.
        Parameters:
        startTime - the configured start time
        endTime - the configured end time
        dateTime - the current LocalDateTime
        Returns:
        true on yes
      • convertDate

        protected static java.time.LocalDate convertDate​(java.lang.String date)
        Converts a string to a LocalDate.
        Parameters:
        date - the string
        Returns:
        a LocalDate object
      • convertTime

        protected static java.time.LocalTime convertTime​(java.lang.String time)
        Converts a string to a LocalTime.
        Parameters:
        time - the string
        Returns:
        a LocalTime object
      • isWeekend

        protected static boolean isWeekend​(java.time.LocalDateTime dateTime)
        Is 'dateTime' a Saturday or Sunday?.
        Parameters:
        dateTime - the current LocalDateTime
        Returns:
        true on yes