java.lang.Object | |
↳ | org.jfree.data.time.TimeSeriesDataItem |
Represents one data item in a time series.
The time period can be any of the following:
The time period is an immutable property of the data item. Data items will often be sorted within a list, and allowing the time period to be changed could destroy the sort order.
Implements the Comparable
interface so that standard Java
sorting can be used to keep the data items in order.
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Constructs a new data item that associates a value with a time period.
| |||||||||||
Constructs a new data item that associates a value with a time period.
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Clones the data item.
| |||||||||||
Returns an integer indicating the order of this data pair object
relative to another object.
| |||||||||||
Tests this object for equality with an arbitrary object.
| |||||||||||
Returns the time period.
| |||||||||||
Returns the value.
| |||||||||||
Returns a hash code.
| |||||||||||
Sets the value for this data item.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() | |||||||||||
![]() |
Constructs a new data item that associates a value with a time period.
period | the time period (null not permitted). |
---|---|
value | the value (null permitted).
|
Constructs a new data item that associates a value with a time period.
period | the time period (null not permitted). |
---|---|
value | the value associated with the time period. |
Clones the data item. Note: there is no need to clone the period or value since they are immutable classes.
Returns an integer indicating the order of this data pair object relative to another object.
For the order we consider only the timing: negative == before, zero == same, positive == after.
o1 | The object being compared to. |
---|
Tests this object for equality with an arbitrary object.
o | the other object. |
---|
Returns the time period.
null
).
Returns a hash code.
Sets the value for this data item.
value | the value (null permitted).
|
---|