public final class

DateRange

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

Class Overview

A simple class to represent a date range

Summary

Public Constructors
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.
Public Methods
boolean equals(Object o)
Date getLowerDate()
Date getUpperDate()
int hashCode()
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

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

Public Methods

public boolean equals (Object o)

public Date getLowerDate ()

Returns
  • the lower of the dates in the date range

public Date getUpperDate ()

Returns
  • the lower of the dates in the date range

public int hashCode ()