org.jfree.data.time
Class DateRange
- Serializable
A range specified in terms of two java.util.Date
objects.
Instances of this class are immutable.
DateRange() - Default constructor.
|
DateRange(Date lower, Date upper) - Constructs a new range.
|
DateRange(double lower, double upper) - Constructs a new range using two values that will be interpreted as
"milliseconds since midnight GMT, 1-Jan-1970".
|
DateRange(Range other) - Constructs a new range that is based on another
Range .
|
Date | getLowerDate() - Returns the lower (earlier) date for the range.
|
Date | getUpperDate() - Returns the upper (later) date for the range.
|
String | toString() - Returns a string representing the date range (useful for debugging).
|
combine , constrain , contains , equals , expand , expandToInclude , getCentralValue , getLength , getLowerBound , getUpperBound , hashCode , intersects , shift , shift , toString |
DateRange
public DateRange()
Default constructor.
DateRange
public DateRange(Date lower,
Date upper)
Constructs a new range.
lower
- the lower bound (null
not permitted).upper
- the upper bound (null
not permitted).
DateRange
public DateRange(double lower,
double upper)
Constructs a new range using two values that will be interpreted as
"milliseconds since midnight GMT, 1-Jan-1970".
lower
- the lower (oldest) date.upper
- the upper (most recent) date.
DateRange
public DateRange(Range other)
Constructs a new range that is based on another
Range
. The
other range does not have to be a
DateRange
. If it is not, the
upper and lower bounds are evaluated as milliseconds since midnight
GMT, 1-Jan-1970.
other
- the other range (null
not permitted).
getLowerDate
public Date getLowerDate()
Returns the lower (earlier) date for the range.
- The lower date for the range.
getUpperDate
public Date getUpperDate()
Returns the upper (later) date for the range.
- The upper date for the range.
toString
public String toString()
Returns a string representing the date range (useful for debugging).
- toString in interface Range
- A string representing the date range.