public static class CronSchedule.TimeRange extends CronSchedule.AbstractTimeValue
| Constructor and Description |
|---|
CronSchedule.TimeRange(int startValue,
int endValue) |
CronSchedule.TimeRange(String range) |
| Modifier and Type | Method and Description |
|---|---|
int |
getEndValue() |
int |
getStartValue() |
boolean |
matches(int timeValue)
Returns true when given time value falls in range.
|
void |
setEndValue(int endValue) |
void |
setStartValue(int startValue) |
String |
toString()
Returns cron-like string of this definition.
|
public CronSchedule.TimeRange(int startValue,
int endValue)
public CronSchedule.TimeRange(String range)
public int getEndValue()
public void setEndValue(int endValue)
endValue - the endValue to setpublic int getStartValue()
public void setStartValue(int startValue)
startValue - the startValue to setpublic boolean matches(int timeValue)
matches in class CronSchedule.AbstractTimeValuetimeValue - - time value to evaluateCopyright © 2014. All rights reserved.