Class DateRange

java.lang.Object
com.atlassian.jira.jql.util.DateRange

public final class DateRange extends Object
A simple class to represent a date range
Since:
v4.4
  • Constructor Details

    • DateRange

      public DateRange(Date lowerDate, Date upperDate)
      The passed in dates can never be null and if the lower is higher than the upper then they are swapped into lower then upper order.
      Parameters:
      lowerDate - the lower date of the range
      upperDate - the upper date of the range
  • Method Details

    • getLowerDate

      public Date getLowerDate()
      Returns:
      the lower of the dates in the date range
    • getUpperDate

      public Date getUpperDate()
      Returns:
      the lower of the dates in the date range
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object