| java.lang.Object org.jfree.data.time.TimePeriodValue
Method Summary | |
public Object | clone() Clones the object. | public boolean | equals(Object obj) Tests this object for equality with the target object.
Parameters: obj - the object (null permitted). | public TimePeriod | getPeriod() Returns the time period. | public Number | getValue() Returns the value. | public int | hashCode() Returns a hash code value for the object. | public void | setValue(Number value) Sets the value for this data item. |
TimePeriodValue | public TimePeriodValue(TimePeriod period, Number value)(Code) | | Constructs a new data item.
Parameters: period - the time period (null not permitted). Parameters: value - the value associated with the time period. throws: IllegalArgumentException - if period is null . |
TimePeriodValue | public TimePeriodValue(TimePeriod period, double value)(Code) | | Constructs a new data item.
Parameters: period - the time period (null not permitted). Parameters: value - the value associated with the time period. throws: IllegalArgumentException - if period is null . |
clone | public Object clone()(Code) | | Clones the object.
Note: no need to clone the period or value since they are immutable
classes.
A clone. |
equals | public boolean equals(Object obj)(Code) | | Tests this object for equality with the target object.
Parameters: obj - the object (null permitted). A boolean. |
getPeriod | public TimePeriod getPeriod()(Code) | | Returns the time period.
The time period (never null ). |
hashCode | public int hashCode()(Code) | | Returns a hash code value for the object.
The hashcode |
|
|