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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic DateRange
dateRangeAsSingleDate
(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.void
setEndDate
(Date endDate) Sets the end date of the range.void
setStartDate
(Date startDate) Sets the start date of the range.toString()
-
Constructor Details
-
DateRange
Initializes 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
-
getStartDate
Returns the start date of the range.- Returns:
- the start date of the range.
-
setStartDate
Sets the start date of the range.- Parameters:
startDate
- the start date of the range.- Throws:
GeneralLeanFtException
- if error occurs during execution
-
getEndDate
Returns the end date of the range.- Returns:
- the end date of the range.
-
setEndDate
Sets the end date of the range.- Parameters:
endDate
- the end date of the range.- Throws:
GeneralLeanFtException
- if error occurs during execution
-
dateRangeAsSingleDate
Returns 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
-