|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jfree.data.time.TimePeriodValue
Represents a time period and an associated value.
| Constructor Summary | |
TimePeriodValue(TimePeriod period,
double value)
Constructs a new data pair. |
|
TimePeriodValue(TimePeriod period,
java.lang.Number value)
Constructs a new data item. |
|
| Method Summary | |
java.lang.Object |
clone()
Clones the data pair. |
boolean |
equals(java.lang.Object o)
Tests this object for equality with the target object. |
TimePeriod |
getPeriod()
Returns the time period. |
java.lang.Number |
getValue()
Returns the value. |
int |
hashCode()
Returns a hash code value for the object. |
void |
setValue(java.lang.Number value)
Sets the value for this data item. |
| Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public TimePeriodValue(TimePeriod period,
java.lang.Number value)
period - the time period.value - the value associated with the time period.
public TimePeriodValue(TimePeriod period,
double value)
period - the time period.value - the value associated with the time period.| Method Detail |
public TimePeriod getPeriod()
public java.lang.Number getValue()
public void setValue(java.lang.Number value)
value - the new value.public boolean equals(java.lang.Object o)
o - the other object.
public int hashCode()
public java.lang.Object clone()
Notes: --> no need to clone the period or value since they are immutable classes.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||