Package rs.baselib.util
Class CronSchedule.SingleTimeValue
java.lang.Object
rs.baselib.util.CronSchedule.AbstractTimeValue
rs.baselib.util.CronSchedule.SingleTimeValue
- All Implemented Interfaces:
Serializable
- Enclosing class:
- CronSchedule
Represents a single time value, e.g. 9
- Author:
- ralph
- See Also:
-
Constructor Summary
-
Method Summary
-
Constructor Details
-
SingleTimeValue
public SingleTimeValue(int value) -
SingleTimeValue
-
-
Method Details
-
getValue
public int getValue()- Returns:
- the value
-
setValue
public void setValue(int value) - Parameters:
value
- the value to set
-
matches
public boolean matches(int timeValue) Returns true when given time value matches defined value.- Specified by:
matches
in classCronSchedule.AbstractTimeValue
- Parameters:
timeValue
- - time value to evaluate- Returns:
- true when time matches
-
toString
Returns cron-like string of this definition.
-