Class IncrementalRecurrence
- java.lang.Object
-
- org.pentaho.platform.scheduler2.recur.IncrementalRecurrence
-
- All Implemented Interfaces:
ITimeRecurrence
public class IncrementalRecurrence extends Object implements 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
Constructors Constructor Description IncrementalRecurrence()
Creates 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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Integer
getIncrement()
Returns the incrementString
getStartingValue()
Returns the starting valuevoid
setIncrement(Integer increment)
Sets the incrementvoid
setStartingValue(String startingValue)
Sets the starting value
-
-
-
Constructor Detail
-
IncrementalRecurrence
public IncrementalRecurrence()
Creates a new incremental recurrence with a null starting value and increment
-
IncrementalRecurrence
public IncrementalRecurrence(Integer startingValue, Integer increment)
Creates a new incremental recurrence.- Parameters:
startingValue
- the starting valueincrement
- the increment
-
-
Method Detail
-
getStartingValue
public String getStartingValue()
Returns the starting value- Returns:
- the starting value
-
setStartingValue
public void setStartingValue(String startingValue)
Sets the starting value- Parameters:
startingValue
- the starting value
-
getIncrement
public Integer getIncrement()
Returns the increment- Returns:
- the increment
-
setIncrement
public void setIncrement(Integer increment)
Sets the increment- Parameters:
increment
- the increment
-
-