Class CronConstraintsFactory
java.lang.Object
io.github.projectunified.cronutils.model.definition.CronConstraintsFactory
-
Method Summary
Modifier and TypeMethodDescriptionstatic CronConstraintstatic CronConstraintCreates CronConstraint to ensure that either day-of-year or month is assigned a specific value.static CronConstraintCreates CronConstraint to ensure that for Quartz cron expressions, either day-of-month or day-of-week must be a question mark.
-
Method Details
-
ensureEitherDayOfYearOrMonth
Creates CronConstraint to ensure that either day-of-year or month is assigned a specific value.- Returns:
- newly created CronConstraint instance, never
null;
-
ensureEitherDayOfWeekOrDayOfMonth
-
ensureQuartzDayOfMonthAndDayOfWeekValidation
Creates CronConstraint to ensure that for Quartz cron expressions, either day-of-month or day-of-week must be a question mark. This follows the Quartz specification which requires one of these fields to be a question mark.- Returns:
- newly created CronConstraint instance, never
null;
-