@PublicApi
public interface CronExpressionValidator
| Modifier and Type | Method and Description |
|---|---|
boolean |
isValid(String cronExpression)
Returns
true if the cron expression can be parsed successfully. |
void |
validate(String cronExpression)
Validates that a cron expression can be successfully parsed.
|
boolean isValid(String cronExpression)
true if the cron expression can be parsed successfully.
This is equivalent to calling validate(String) except that it returns a boolean value
as opposed to throwing an exception when the expression is not valid.
cronExpression - the cron expression to be consideredtrue if the cron expression can be parsed successfully; false otherwise.void validate(String cronExpression) throws CronSyntaxException
cronExpression - the cron expression to be consideredCronSyntaxException - if the cron expression contains invalid syntaxCopyright © 2017 Atlassian. All rights reserved.