CronExpression instances are created through parse(String);
the next match is determined with next(Temporal).
Supports a Quartz day-of-month/week field with an L/# expression. Follows common cron conventions in every other respect, including 0-6 for SUN-SAT (plus 7 for SUN as well). Note that Quartz deviates from the day-of-week convention in cron through 1-7 for SUN-SAT whereas Spring strictly follows cron even in combination with the optional Quartz-specific L/# expressions.
CronTrigger
| Modifier and Type | Field and Description |
|---|---|
| private final String | |
| private final CronField[] | |
| private static final String[] | |
| pack-priv static final int |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | equals(Object
the reference object with which to compare. other)Overrides java. Indicates whether some other object is "equal to" this one. |
| public int | |
| public static boolean | Returns: true if the given expression is a valid cron expressionthe expression to evaluate expression)Determine whether the given string represents a valid cron expression. |
| public < the type of temporal T extends Temporal & Comparable | |
| private <T extends Temporal & Comparable | |
| private <T extends Temporal & Comparable | |
| public static CronExpression | Returns: the parsedCronExpression objectthe expression string to parse expression)Parse the given
crontab expression
string into a |
| private static String | |
| public String | toString()
Overrides java. Return the expression string used to create this |
| expression | back to summary |
|---|---|
| private final String expression | |
| fields | back to summary |
|---|---|
| private final CronField[] fields | |
| MACROS | back to summary |
|---|---|
| private static final String[] MACROS | |
| MAX_ATTEMPTS | back to summary |
|---|---|
| pack-priv static final int MAX_ATTEMPTS | |
| CronExpression | back to summary |
|---|---|
| private CronExpression(CronField seconds, CronField minutes, CronField hours, CronField daysOfMonth, CronField months, CronField daysOfWeek, String expression) | |
| equals | back to summary |
|---|---|
| public boolean equals(Object other) Overrides java. Doc from java. Indicates whether some other object is "equal to" this one.
The
An equivalence relation partitions the elements it operates on into equivalence classes; all the members of an equivalence class are equal to each other. Members of an equivalence class are substitutable for each other, at least for some purposes. | |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides java. Doc from java. Returns a hash code value for this object. This method is
supported for the benefit of hash tables such as those provided by
The general contract of
| |
| isValidExpression | back to summary |
|---|---|
| public static boolean isValidExpression(String expression) Determine whether the given string represents a valid cron expression.
| |
| next | back to summary |
|---|---|
| public <T extends Temporal & Comparable Calculate the next
| |
| nextOrSame | back to summary |
|---|---|
private <T extends Temporal & Comparable
| |
| nextOrSameInternal | back to summary |
|---|---|
private <T extends Temporal & Comparable
| |
| parse | back to summary |
|---|---|
| public static CronExpression parse(String expression) Parse the given
crontab expression
string into a ┌───────────── second (0-59) │ ┌───────────── minute (0 - 59) │ │ ┌───────────── hour (0 - 23) │ │ │ ┌───────────── day of the month (1 - 31) │ │ │ │ ┌───────────── month (1 - 12) (or JAN-DEC) │ │ │ │ │ ┌───────────── day of the week (0 - 7) │ │ │ │ │ │ (0 or 7 is Sunday, or MON-SUN) │ │ │ │ │ │ * * * * * * The following rules apply:
Example expressions:
The following macros are also supported:
| |
| resolveMacros | back to summary |
|---|---|
| private static String resolveMacros(String expression) | |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Return the expression string used to create this
| |