Package com.hp.lft.sdk
Class DateRange
java.lang.Object
com.hp.lft.sdk.DateRange
A range of dates used for month calendar controls that support multi-selection.
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionstatic DateRangedateRangeAsSingleDate(Date date) Returns a DateRange instance initialized with an end date equal to the start date.Returns the end date of the range.Returns the start date of the range.voidsetEndDate(Date endDate) Sets the end date of the range.voidsetStartDate(Date startDate) Sets the start date of the range.toString()
- 
Constructor Details- 
DateRangeInitializes a new instance of the DateRange class.- Parameters:
- startDate- the start date of the range.
- endDate- the end date of the range.
- Throws:
- GeneralLeanFtException- if error occurs during execution Note: if either startDate or endDate are null, then the non-null value provided will be used also for the missing date.
 
 
- 
- 
Method Details- 
getStartDateReturns the start date of the range.- Returns:
- the start date of the range.
 
- 
setStartDateSets the start date of the range.- Parameters:
- startDate- the start date of the range.
- Throws:
- GeneralLeanFtException- if error occurs during execution
 
- 
getEndDateReturns the end date of the range.- Returns:
- the end date of the range.
 
- 
setEndDateSets the end date of the range.- Parameters:
- endDate- the end date of the range.
- Throws:
- GeneralLeanFtException- if error occurs during execution
 
- 
dateRangeAsSingleDateReturns a DateRange instance initialized with an end date equal to the start date.- Parameters:
- date- date that represents both the start and end date of the range.
- Returns:
- a DateRange instance initialized with an end date equal to the start date.
- Throws:
- GeneralLeanFtException- if error occurs during execution
 
- 
toString
 
-