Package dev.voidframework.scheduler.cron
Interface CronExpressionPart
public interface CronExpressionPart
Represents a subpart of a CRON expression.
- Since:
- 1.0.0
-
Method Summary
Modifier and TypeMethodDescriptionvoidassertViolation(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 Details
-
isNotCompliant
boolean isNotCompliant(int value) Checks that the value does not match- Parameters:
value- The value to test- Returns:
trueif not compliant, otherwise,false- Since:
- 1.0.0
-
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- Since:
- 1.0.0
-