Package rs.baselib.util
Class CronSchedule.TimeSteps
java.lang.Object
rs.baselib.util.CronSchedule.AbstractTimeValue
rs.baselib.util.CronSchedule.TimeSteps
- All Implemented Interfaces:
java.io.Serializable
- Enclosing class:
- CronSchedule
public static class CronSchedule.TimeSteps extends CronSchedule.AbstractTimeValue
Represents a time interval, e.g. 0-4/10
- Author:
- ralph
- See Also:
- Serialized Form
-
Constructor Summary
Constructors Constructor Description TimeSteps(java.lang.String def)TimeSteps(CronSchedule.AbstractTimeValue range, int steps) -
Method Summary
Modifier and Type Method Description CronSchedule.AbstractTimeValuegetRange()intgetSteps()booleanmatches(int timeValue)Returns true when given time value matches the interval.voidsetRange(CronSchedule.AbstractTimeValue range)voidsetSteps(int steps)java.lang.StringtoString()Returns cron-like string of this definition.
-
Constructor Details
-
Method Details
-
matches
public boolean matches(int timeValue)Returns true when given time value matches the interval.- Specified by:
matchesin 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
public java.lang.String toString()Returns cron-like string of this definition.- Overrides:
toStringin classjava.lang.Object
-