Class 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 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