Package rs.baselib.util
Class CronSchedule.TimeSteps
java.lang.Object
rs.baselib.util.CronSchedule.AbstractTimeValue
rs.baselib.util.CronSchedule.TimeSteps
- All Implemented Interfaces:
Serializable
- Enclosing class:
- CronSchedule
Represents a time interval, e.g. 0-4/10
- Author:
- ralph
- See Also:
-
Constructor Summary
-
Method Summary
-
Constructor Details
-
TimeSteps
-
TimeSteps
-
-
Method Details
-
matches
public boolean matches(int timeValue) Returns true when given time value matches the interval.- Specified by:
matches
in classCronSchedule.AbstractTimeValue
- Parameters:
timeValue
- - time value to evaluate- Returns:
- true when time matches the interval
-
getRange
- Returns:
- the range
-
setRange
- Parameters:
range
- the range to set
-
getSteps
public int getSteps()- Returns:
- the steps
-
setSteps
public void setSteps(int steps) - Parameters:
steps
- the steps to set
-
toString
Returns cron-like string of this definition.
-