CronField for
Quartz-specific fields.
Created using the parse* methods, uses a TemporalAdjuster
internally.
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 | Field and Description |
|---|---|
| private final TemporalAdjuster | |
| private final CronField. | |
| private final String |
| Access | Constructor and Description |
|---|---|
| private | |
| private | QuartzCronField(CronField.
Constructor for fields that need to roll forward over a different type than the type this field represents. |
| Modifier and Type | Method and Description |
|---|---|
| private <T extends Temporal & Comparable | |
| private static TemporalAdjuster | |
| private static TemporalAdjuster | dayOfWeekInMonth(int ordinal, DayOfWeek dayOfWeek)
Returns a temporal adjuster that finds |
| 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 | isQuartzDaysOfMonthField(String value)
Determine whether the given value is a Quartz day-of-month field. |
| public static boolean | isQuartzDaysOfWeekField(String value)
Determine whether the given value is a Quartz day-of-week field. |
| private static boolean | |
| private static TemporalAdjuster | lastDayOfMonth()
Returns an adjuster that returns a new temporal set to the last day of the current month at midnight. |
| private static TemporalAdjuster | Returns: a nth-to-last day-of-month adjusterthe negative offset, i.e. -3 means third-to-last offset)Returns a temporal adjuster that finds the nth-to-last day of the month. |
| private static TemporalAdjuster | lastInMonth(DayOfWeek dayOfWeek)
Returns a temporal adjuster that finds the last of the given day-of-week in a month. |
| private static TemporalAdjuster | |
| public <T extends Temporal & Comparable | nextOrSame(T
the seed value temporal)Implements abstract org. Get the next or same |
| private static DayOfWeek | |
| public static QuartzCronField | parseDaysOfMonth(String value)
Hides org. Parse the given value into a days of months |
| public static QuartzCronField | parseDaysOfWeek(String value)
Hides org. Parse the given value into a days of week |
| private static Temporal | |
| public String | |
| private static TemporalAdjuster | Returns: the weekday-nearest-to adjusterthe goal day-of-month dayOfMonth)Returns a temporal adjuster that finds the weekday nearest to the given day-of-month. |
| adjuster | back to summary |
|---|---|
| private final TemporalAdjuster adjuster | |
| rollForwardType | back to summary |
|---|---|
| private final CronField. | |
| value | back to summary |
|---|---|
| private final String value | |
| QuartzCronField | back to summary |
|---|---|
| private QuartzCronField(CronField. | |
| QuartzCronField | back to summary |
|---|---|
| private QuartzCronField(CronField. Constructor for fields that need to roll forward over a different type
than the type this field represents. See | |
| adjust | back to summary |
|---|---|
private <T extends Temporal & Comparable
| |
| atMidnight | back to summary |
|---|---|
| private static TemporalAdjuster atMidnight() Returns an adjuster that resets to midnight. | |
| dayOfWeekInMonth | back to summary |
|---|---|
| private static TemporalAdjuster dayOfWeekInMonth(int ordinal, DayOfWeek dayOfWeek) Returns a temporal adjuster that finds | |
| 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
| |
| isQuartzDaysOfMonthField | back to summary |
|---|---|
| public static boolean isQuartzDaysOfMonthField(String value) Determine whether the given value is a Quartz day-of-month field. | |
| isQuartzDaysOfWeekField | back to summary |
|---|---|
| public static boolean isQuartzDaysOfWeekField(String value) Determine whether the given value is a Quartz day-of-week field. | |
| isWeekday | back to summary |
|---|---|
| private static boolean isWeekday(DayOfWeek dayOfWeek) | |
| lastDayOfMonth | back to summary |
|---|---|
| private static TemporalAdjuster lastDayOfMonth() Returns an adjuster that returns a new temporal set to the last day of the current month at midnight. | |
| lastDayWithOffset | back to summary |
|---|---|
| private static TemporalAdjuster lastDayWithOffset(int offset) Returns a temporal adjuster that finds the nth-to-last day of the month.
| |
| lastInMonth | back to summary |
|---|---|
| private static TemporalAdjuster lastInMonth(DayOfWeek dayOfWeek) Returns a temporal adjuster that finds the last of the given day-of-week in a month. | |
| lastWeekdayOfMonth | back to summary |
|---|---|
| private static TemporalAdjuster lastWeekdayOfMonth() Returns an adjuster that returns the last weekday of the month. | |
| nextOrSame | back to summary |
|---|---|
| public <T extends Temporal & Comparable Implements abstract org. Doc from org. Get the next or same
| |
| parseDayOfWeek | back to summary |
|---|---|
| private static DayOfWeek parseDayOfWeek(String value) | |
| parseDaysOfMonth | back to summary |
|---|---|
| public static QuartzCronField parseDaysOfMonth(String value) Hides org. Parse the given value into a days of months Expects a "L" or "W" in the given value. | |
| parseDaysOfWeek | back to summary |
|---|---|
| public static QuartzCronField parseDaysOfWeek(String value) Hides org. Parse the given value into a days of week Expects a "L" or "#" in the given value. | |
| rollbackToMidnight | back to summary |
|---|---|
| private static Temporal rollbackToMidnight(Temporal current, Temporal result) Rolls back the given | |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object.
Satisfying this method's contract implies a non- | |
| weekdayNearestTo | back to summary |
|---|---|
| private static TemporalAdjuster weekdayNearestTo(int dayOfMonth) Returns a temporal adjuster that finds the weekday nearest to the given
day-of-month. If
| |