public class CronExpression extends Object
| Constructor and Description |
|---|
CronExpression(Temporal temporal)
Create a CronExpression that triggers when the given temporal occurs.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj)
Tells if this cron expression is equals to the given one.
|
int |
hashCode() |
static Set<CronExpression> |
merge(Collection<CronExpression> crons)
Merge the given cron expressions where it is possible.
|
String |
toString()
Convert this cron expression into its string representation.
|
public CronExpression(Temporal temporal)
temporal - the temporal from which to build the cron expressionpublic boolean equals(Object obj)
public String toString()
toString in class Objectpublic static Set<CronExpression> merge(Collection<CronExpression> crons)
"2 18 * * *" and "4 18 * * *"
can be merged in "2,4 18 * * *".crons - the cron expressions to mergeCopyright © 2017. All rights reserved.