parse* methods,
the main and only entry point is nextOrSame(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.
| Modifier and Type | Class and Description |
|---|---|
| protected static enum | CronField.Type
Represents the type of cron field, i.e. seconds, minutes, hours, day-of-month, month, day-of-week. |
| Modifier and Type | Field and Description |
|---|---|
| private static final String[] | |
| private static final String[] | |
| private final CronField. |
| Modifier and Type | Method and Description |
|---|---|
| protected static <T extends Temporal & Comparable | |
| public abstract <T extends Temporal & Comparable | Returns: the next or same temporal matching the patternthe seed value temporal)Get the next or same |
| public static CronField | parseDaysOfMonth(String value)
Parse the given value into a days of months |
| public static CronField | parseDaysOfWeek(String value)
Parse the given value into a days of week |
| public static CronField | parseHours(String value)
Parse the given value into an hours |
| private static CronField | |
| public static CronField | parseMinutes(String value)
Parse the given value into a minutes |
| public static CronField | parseMonth(String value)
Parse the given value into a month |
| public static CronField | parseSeconds(String value)
Parse the given value into a seconds |
| private static String | |
| protected CronField. | |
| public static CronField |
| DAYS | back to summary |
|---|---|
| private static final String[] DAYS | |
| MONTHS | back to summary |
|---|---|
| private static final String[] MONTHS | |
| type | back to summary |
|---|---|
| private final CronField. | |
| CronField | back to summary |
|---|---|
| protected CronField(CronField. | |
| cast | back to summary |
|---|---|
protected static <T extends Temporal & Comparable
| |
| nextOrSame | back to summary |
|---|---|
| public abstract <T extends Temporal & Comparable Get the next or same
| |
| parseDaysOfMonth | back to summary |
|---|---|
| public static CronField parseDaysOfMonth(String value) Parse the given value into a days of months | |
| parseDaysOfWeek | back to summary |
|---|---|
| public static CronField parseDaysOfWeek(String value) Parse the given value into a days of week | |
| parseHours | back to summary |
|---|---|
| public static CronField parseHours(String value) Parse the given value into an hours | |
| parseList | back to summary |
|---|---|
| private static CronField parseList(String value, CronField. | |
| parseMinutes | back to summary |
|---|---|
| public static CronField parseMinutes(String value) Parse the given value into a minutes | |
| parseMonth | back to summary |
|---|---|
| public static CronField parseMonth(String value) Parse the given value into a month | |
| parseSeconds | back to summary |
|---|---|
| public static CronField parseSeconds(String value) Parse the given value into a seconds | |
| replaceOrdinals | back to summary |
|---|---|
| private static String replaceOrdinals(String value, String[] list) | |
| type | back to summary |
|---|---|
| protected CronField. | |
| zeroNanos | back to summary |
|---|---|
| public static CronField zeroNanos() Return a | |
| Modifier and Type | Field and Description |
|---|---|
| public static final CronField. | |
| public static final CronField. | |
| private final ChronoField | |
| private final ChronoUnit | |
| public static final CronField. | |
| private final ChronoField[] | |
| public static final CronField. | |
| public static final CronField. | |
| public static final CronField. | |
| public static final CronField. |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public int | Returns: the value that was passed inthe value to check value)Check whether the given value is valid, i.e. whether it falls in range. |
| public < the type of temporal T extends Temporal & Comparable | Returns: the elapsed temporal, typically withgoal as value
for this type.the temporal to elapse temporal, int the goal value goal)Elapse the given temporal for the difference between the current value of this field and the goal value. |
| public int | |
| public ValueRange | |
| public < the type of temporal T extends Temporal> T | Returns: the reset temporalthe temporal to reset temporal)Reset this and all lower order fields of the given temporal to their minimum value. |
| public < the type of temporal T extends Temporal & Comparable | Returns: the rolled forward temporalthe temporal to roll forward temporal)Roll forward the give temporal until it reaches the next higher order field. |
| public String | toString()
Overrides java. |
| public static CronField. | |
| public static CronField. |
| DAY_OF_MONTH | back to summary |
|---|---|
| public static final CronField. | |
| DAY_OF_WEEK | back to summary |
|---|---|
| public static final CronField. | |
| field | back to summary |
|---|---|
| private final ChronoField field | |
| higherOrder | back to summary |
|---|---|
| private final ChronoUnit higherOrder | |
| HOUR | back to summary |
|---|---|
| public static final CronField. | |
| lowerOrders | back to summary |
|---|---|
| private final ChronoField[] lowerOrders | |
| MINUTE | back to summary |
|---|---|
| public static final CronField. | |
| MONTH | back to summary |
|---|---|
| public static final CronField. | |
| NANO | back to summary |
|---|---|
| public static final CronField. | |
| SECOND | back to summary |
|---|---|
| public static final CronField. | |
| Type | back to summary |
|---|---|
| private Type(ChronoField field, ChronoUnit higherOrder, ChronoField... lowerOrders) | |
| checkValidValue | back to summary |
|---|---|
| public int checkValidValue(int value) Check whether the given value is valid, i.e. whether it falls in range.
| |
| elapseUntil | back to summary |
|---|---|
| public <T extends Temporal & Comparable Elapse the given temporal for the difference between the current
value of this field and the goal value. Typically, the returned
temporal will have the given goal as the current value for this type,
but this is not the case for
| |
| get | back to summary |
|---|---|
| public int get(Temporal date) Return the value of this type for the given temporal.
| |
| range | back to summary |
|---|---|
| public ValueRange range() Return the general range of this type. For instance, this method
will return 0-31 for
| |
| reset | back to summary |
|---|---|
| public <T extends Temporal> T reset(T temporal) Reset this and all lower order fields of the given temporal to their
minimum value. For instance for
| |
| rollForward | back to summary |
|---|---|
| public <T extends Temporal & Comparable Roll forward the give temporal until it reaches the next higher
order field. Calling this method is equivalent to calling
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns the name of this enum constant, as contained in the declaration. This method may be overridden, though it typically isn't necessary or desirable. An enum class should override this method when a more "programmer-friendly" string form exists. | |
| valueOf | back to summary |
|---|---|
| public static CronField. | |
| values | back to summary |
|---|---|
| public static CronField. | |