Class CronConstraintsFactory

java.lang.Object
io.github.projectunified.cronutils.model.definition.CronConstraintsFactory

public class CronConstraintsFactory extends Object
  • Method Details

    • ensureEitherDayOfYearOrMonth

      public static CronConstraint 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

      public static CronConstraint ensureEitherDayOfWeekOrDayOfMonth()
    • ensureQuartzDayOfMonthAndDayOfWeekValidation

      public static CronConstraint 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;