Package ninja.scheduler.cron
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 valueallowedMaxStepValue
- The maximum value for the Step valueallowedMinValue
- The minimum valueallowedMaxValue
- The maximum value
-
-