Package ninja.scheduler.cron
Interface CronExpressionPart
-
public interface CronExpressionPartRepresents a subpart of a CRON expression.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidassertViolation(int allowedMinStepValue, int allowedMaxStepValue, int allowedMinValue, int allowedMaxValue)Checks that CRON expression has valid attributes.booleanisNotCompliant(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:
trueif 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
-
-