org.jfree.data.time
public class DateRange extends Range implements Serializable
java.util.Date
objects.
Instances of this class are immutable.
Constructor Summary | |
---|---|
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. |
Method Summary | |
---|---|
Date | getLowerDate()
Returns the lower (earlier) date for the range.
|
long | getLowerMillis()
Returns the lower bound of the range in milliseconds.
|
Date | getUpperDate()
Returns the upper (later) date for the range.
|
long | getUpperMillis()
Returns the upper bound of the range in milliseconds.
|
String | toString()
Returns a string representing the date range (useful for debugging).
|
Parameters: lower the lower bound (null
not permitted). upper the upper bound (null
not permitted).
Parameters: lower the lower (oldest) date. upper the upper (most recent) date.
Parameters: other the other range (null
not permitted).
Returns: The lower date for the range.
See Also: getLowerMillis
Returns: The lower bound.
Since: 1.0.11
Returns: The upper date for the range.
See Also: getUpperMillis
Returns: The upper bound.
Since: 1.0.11
Returns: A string representing the date range.