CronExpression
@Deprecated public class CronSequenceGenerator extends Object
The pattern is a list of six single space-separated fields: representing second, minute, hour, day, month, weekday. Month and weekday names can be given as the first three letters of the English names.
Example patterns:
CronTrigger
Constructor and Description |
---|
CronSequenceGenerator(String expression)
Deprecated.
as of 5.3, in favor of
CronExpression.parse(String) |
CronSequenceGenerator(String expression,
TimeZone timeZone)
Deprecated.
as of 5.3, in favor of
CronExpression.parse(String) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object other)
Deprecated.
|
int |
hashCode()
Deprecated.
|
static boolean |
isValidExpression(String expression)
Deprecated.
Determine whether the specified expression represents a valid cron pattern.
|
Date |
next(Date date)
Deprecated.
Get the next
Date in the sequence matching the Cron pattern and
after the value provided. |
String |
toString()
Deprecated.
|
@Deprecated public CronSequenceGenerator(String expression)
CronExpression.parse(String)
CronSequenceGenerator
from the pattern provided,
using the default TimeZone
.expression
- a space-separated list of time fieldsIllegalArgumentException
- if the pattern cannot be parsedTimeZone.getDefault()
@Deprecated public CronSequenceGenerator(String expression, TimeZone timeZone)
CronExpression.parse(String)
CronSequenceGenerator
from the pattern provided,
using the specified TimeZone
.expression
- a space-separated list of time fieldstimeZone
- the TimeZone to use for generated trigger timesIllegalArgumentException
- if the pattern cannot be parsedpublic Date next(Date date)
Date
in the sequence matching the Cron pattern and
after the value provided. The return value will have a whole number of
seconds, and will be after the input value.date
- a seed valuepublic static boolean isValidExpression(@Nullable String expression)
expression
- the expression to evaluatetrue
if the given expression is a valid cron expression