Class CronParser
java.lang.Object
io.github.projectunified.cronutils.parser.CronParser
Parser for cron expressions.
The class is thread safe.
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
CronParser
- Parameters:
cronDefinition- - cronDefinition of cron expressions to be parsed if null, a NullPointerException will be raised.
-
-
Method Details
-
parse
Parse string with cron expression.- Parameters:
expression- - cron expression, never null- Returns:
- Cron instance, corresponding to cron expression received
- Throws:
IllegalArgumentException- if expression does not match cron definition
-