Class SequentialRecurrence
- java.lang.Object
-
- org.pentaho.platform.scheduler2.recur.SequentialRecurrence
-
- All Implemented Interfaces:
ITimeRecurrence
public class SequentialRecurrence extends Object implements ITimeRecurrence
Used to specify a sequence of dates or times from first value through and including the last value. The sequence 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 SequentialRecurrence()
Creates a new sequence with a null first and last valueSequentialRecurrence(Integer firstValue, Integer lastValue)
Creates a new sequence.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Integer
getFirstValue()
Returns the first value in the sequence.Integer
getLastValue()
Returns the last value in the sequence.void
setFirstValue(Integer firstValue)
Sets the first value in the sequence.void
setLastValue(Integer lastValue)
Sets the last value in the sequence.
-
-
-
Method Detail
-
getFirstValue
public Integer getFirstValue()
Returns the first value in the sequence.- Returns:
- the first value in the sequence
-
setFirstValue
public void setFirstValue(Integer firstValue)
Sets the first value in the sequence.- Parameters:
firstValue
- the first value in the sequence
-
getLastValue
public Integer getLastValue()
Returns the last value in the sequence.- Returns:
- the last value in the sequence
-
setLastValue
public void setLastValue(Integer lastValue)
Sets the last value in the sequence.- Parameters:
lastValue
- the last value in the sequence
-
-