Class TimeValidator.TimeConfig

    • Method Detail

      • between

        public static TimeValidator.TimeConfig between​(LocalTime from,
                                                       LocalTime to)
        Create a time config for a check between times within a day.
        Parameters:
        from - from time (ignoring date part)
        to - to time (ignoring date part)
        Returns:
        time configuration for this between config
      • daysOfWeek

        public static TimeValidator.TimeConfig daysOfWeek​(DayOfWeek... days)
        Create a time config for a check for days of week.
        Parameters:
        days - days the endpoint should be accessible on
        Returns:
        time configuration for this week day config
      • create

        public static TimeValidator.TimeConfig create​(Config config)
        Create an time config from configuration.
        Parameters:
        config - configuration located on this validator config key
        Returns:
        time configuration based on the config