Class IncrementalRecurrence
java.lang.Object
org.pentaho.platform.scheduler2.recur.IncrementalRecurrence
- All Implemented Interfaces:
ITimeRecurrence
Used to specify incremental dates or times. For example an incremental recurrence with 1 as a starting value and 3 as
an increment translates to 1, 4, 7, etc. The time units may represent years, or days of month or hours, etc. The
method to which this class is passed will determine the meaning of the integers within the list.
- Author:
- arodriguez
-
Constructor Summary
ConstructorsConstructorDescriptionCreates a new incremental recurrence with a null starting value and incrementIncrementalRecurrence
(Integer startingValue, Integer increment) Creates a new incremental recurrence.IncrementalRecurrence
(String startingValue, Integer increment) Creates a new incremental recurrence. -
Method Summary
Modifier and TypeMethodDescriptionReturns the incrementReturns the starting valuevoid
setIncrement
(Integer increment) Sets the incrementvoid
setStartingValue
(String startingValue) Sets the starting value
-
Constructor Details
-
IncrementalRecurrence
public IncrementalRecurrence()Creates a new incremental recurrence with a null starting value and increment -
IncrementalRecurrence
Creates a new incremental recurrence.- Parameters:
startingValue
- the starting valueincrement
- the increment
-
IncrementalRecurrence
Creates a new incremental recurrence.- Parameters:
startingValue
- the starting valueincrement
- the increment
-
-
Method Details
-
getStartingValue
Returns the starting value- Returns:
- the starting value
-
setStartingValue
Sets the starting value- Parameters:
startingValue
- the starting value
-
getIncrement
Returns the increment- Returns:
- the increment
-
setIncrement
Sets the increment- Parameters:
increment
- the increment
-