Class DateRange

java.lang.Object
com.hp.lft.sdk.DateRange

public class DateRange extends Object
A range of dates used for month calendar controls that support multi-selection.
  • Constructor Details

    • DateRange

      public DateRange(Date startDate, Date endDate) throws GeneralLeanFtException
      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

      public Date getStartDate()
      Returns the start date of the range.
      Returns:
      the start date of the range.
    • setStartDate

      public void setStartDate(Date startDate) throws GeneralLeanFtException
      Sets the start date of the range.
      Parameters:
      startDate - the start date of the range.
      Throws:
      GeneralLeanFtException - if error occurs during execution
    • getEndDate

      public Date getEndDate()
      Returns the end date of the range.
      Returns:
      the end date of the range.
    • setEndDate

      public void setEndDate(Date endDate) throws GeneralLeanFtException
      Sets the end date of the range.
      Parameters:
      endDate - the end date of the range.
      Throws:
      GeneralLeanFtException - if error occurs during execution
    • dateRangeAsSingleDate

      public static DateRange dateRangeAsSingleDate(Date date) throws GeneralLeanFtException
      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

      public String toString()
      Overrides:
      toString in class Object