com.atlassian.jira.jql.util
Class DateRange

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

public final class DateRange
extends Object

A simple class to represent a date range

Since:
v4.4

Constructor Summary
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.
 
Method Summary
 boolean equals(Object o)
           
 Date getLowerDate()
           
 Date getUpperDate()
           
 int hashCode()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

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 Detail

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


Copyright © 2002-2012 Atlassian. All Rights Reserved.