code: public DateRange getRange(int index)
     {
        DateRange result;
  
        if (index >= 0 && index < m_ranges.size())
        {
           result = m_ranges.get(index);
        }
        else
        {
           result = DateRange.EMPTY_RANGE;
        }
  
        return (result);
     }
docs: Retrieve the date range at the specified index.
  The index is zero based, and this method will return
  null if the requested date range does not exist.
  
  @param index range index
  @return date range instance