Package rs.baselib.util
Class CronSchedule.TimeRange
java.lang.Object
rs.baselib.util.CronSchedule.AbstractTimeValue
rs.baselib.util.CronSchedule.TimeRange
- All Implemented Interfaces:
java.io.Serializable
- Enclosing class:
- CronSchedule
public static class CronSchedule.TimeRange extends CronSchedule.AbstractTimeValue
Represents a time range, e.g. 5-9
- Author:
- ralph
- See Also:
- Serialized Form
-
Constructor Summary
-
Method Summary
Modifier and Type Method Description intgetEndValue()intgetStartValue()booleanmatches(int timeValue)Returns true when given time value falls in range.voidsetEndValue(int endValue)voidsetStartValue(int startValue)java.lang.StringtoString()Returns cron-like string of this definition.
-
Constructor Details
-
Method Details
-
getEndValue
public int getEndValue()- Returns:
- the endValue
-
setEndValue
public void setEndValue(int endValue)- Parameters:
endValue- the endValue to set
-
getStartValue
public int getStartValue()- Returns:
- the startValue
-
setStartValue
public void setStartValue(int startValue)- Parameters:
startValue- the startValue to set
-
matches
public boolean matches(int timeValue)Returns true when given time value falls in range.- Specified by:
matchesin classCronSchedule.AbstractTimeValue- Parameters:
timeValue- - time value to evaluate- Returns:
- true when time falls in range
-
toString
public java.lang.String toString()Returns cron-like string of this definition.- Overrides:
toStringin classjava.lang.Object
-