org.pentaho.platform.scheduler2.recur
Class SequentialRecurrence

java.lang.Object
  extended by 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
SequentialRecurrence()
          Creates a new sequence with a null first and last value
SequentialRecurrence(Integer firstValue, Integer lastValue)
          Creates a new sequence.
 
Method Summary
 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.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SequentialRecurrence

public SequentialRecurrence()
Creates a new sequence with a null first and last value


SequentialRecurrence

public SequentialRecurrence(Integer firstValue,
                            Integer lastValue)
Creates a new sequence.

Parameters:
firstValue - the first value in the sequence
lastValue - 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