Class DateRange


  • public final class DateRange
    extends java.lang.Object
    Defines the range between two dates.
    Since:
    1.6.0
    • Constructor Summary

      Constructors 
      Constructor Description
      DateRange()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.util.Date getEndDate()
      Returns the end date.
      java.util.Date getStartDate()
      Returns the start date.
      boolean isInDateRange​(java.util.Date date)
      Checks whether the date is in date range.
      void setEndDate​(java.util.Date endDate)
      Specifies the end date.
      void setStartDate​(java.util.Date startDate)
      Specifies the start date.
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • DateRange

        public DateRange()
    • Method Detail

      • isInDateRange

        public boolean isInDateRange​(java.util.Date date)
        Checks whether the date is in date range.
        Parameters:
        date - the date
        Returns:
        true, if Date is in date range
      • setStartDate

        public void setStartDate​(java.util.Date startDate)
        Specifies the start date.
      • setEndDate

        public void setEndDate​(java.util.Date endDate)
        Specifies the end date.
      • getStartDate

        public java.util.Date getStartDate()
        Returns the start date.
      • getEndDate

        public java.util.Date getEndDate()
        Returns the end date.