public interface CronRule extends Serializable
DateTimeTemplate to confirm
whether or not it matches and advance to the next match that would satisfy it.
The rules themselves are stateless.
| Modifier and Type | Method and Description |
|---|---|
boolean |
first(DateTimeTemplate dateTime)
Resets
dateTime to the minimum matching value for this rule, if possible. |
boolean |
matches(DateTimeTemplate dateTime)
Returns
true if dateTime matches the rule; false if it does not. |
boolean |
next(DateTimeTemplate dateTime)
Advance
dateTime to when the rule would next match, if possible. |
boolean matches(DateTimeTemplate dateTime)
true if dateTime matches the rule; false if it does not.dateTime - the moment to consider as a match for the ruletrue if dateTime matches the rule; false if it does not.boolean first(DateTimeTemplate dateTime)
dateTime to the minimum matching value for this rule, if possible.dateTime - the time to modify by resetting the value that this rule evaluates to its minimum matching valuetrue if dateTime has successfully been updated to when the rule would first match;
false if there are no matching values for this rule (at least without some other rule changing
dateTime in some other way first).boolean next(DateTimeTemplate dateTime)
dateTime to when the rule would next match, if possible.dateTime - the time to modify by changing the value that this rule evaluates to its next matching valuetrue if dateTime has successfully been updated to when the rule would next match;
false if all legal values have been exhausted for this rule (at least without some other
rule changing dateTime in some other way first).Copyright © 2019 Atlassian. All rights reserved.