Interface CronExpressionPart


  • public interface CronExpressionPart
    Represents a subpart of a CRON expression.
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      void assertViolation​(int allowedMinStepValue, int allowedMaxStepValue, int allowedMinValue, int allowedMaxValue)
      Checks that CRON expression has valid attributes.
      boolean isNotCompliant​(int value)
      Checks that the value does not match
    • Method Detail

      • isNotCompliant

        boolean isNotCompliant​(int value)
        Checks that the value does not match
        Parameters:
        value - The value to test
        Returns:
        true if not compliant, otherwise, false
      • assertViolation

        void assertViolation​(int allowedMinStepValue,
                             int allowedMaxStepValue,
                             int allowedMinValue,
                             int allowedMaxValue)
        Checks that CRON expression has valid attributes.
        Parameters:
        allowedMinStepValue - The minimum value for the Step value
        allowedMaxStepValue - The maximum value for the Step value
        allowedMinValue - The minimum value
        allowedMaxValue - The maximum value