Class SequentialRecurrence
java.lang.Object
org.pentaho.platform.scheduler2.recur.SequentialRecurrence
- All Implemented Interfaces:
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
ConstructorDescriptionCreates a new sequence with a null first and last valueSequentialRecurrence
(Integer firstValue, Integer lastValue) Creates a new sequence. -
Method Summary
Modifier and TypeMethodDescriptionReturns the first value in the sequence.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.
-
Constructor Details
-
SequentialRecurrence
public SequentialRecurrence()Creates a new sequence with a null first and last value -
SequentialRecurrence
Creates a new sequence.- Parameters:
firstValue
- the first value in the sequencelastValue
- the last value in the sequence
-
-
Method Details
-
getFirstValue
Returns the first value in the sequence.- Returns:
- the first value in the sequence
-
setFirstValue
Sets the first value in the sequence.- Parameters:
firstValue
- the first value in the sequence
-
getLastValue
Returns the last value in the sequence.- Returns:
- the last value in the sequence
-
setLastValue
Sets the last value in the sequence.- Parameters:
lastValue
- the last value in the sequence
-