org.jfree.data.time
Class TimePeriodValue
java.lang.Objectorg.jfree.data.time.TimePeriodValue
- Cloneable, Serializable
extends java.lang.Object
implements Cloneable, Serializable
Represents a time period and an associated value.
Object | clone()- Clones the object.
|
boolean | equals(Object obj)- Tests this object for equality with the target object.
|
TimePeriod | getPeriod()- Returns the time period.
|
Number | getValue()- Returns the value.
|
int | hashCode()- Returns a hash code value for the object.
|
void | setValue(Number value)- Sets the value for this data item.
|
String | toString()- Returns a string representing this instance, primarily for use in
debugging.
|
TimePeriodValue
public TimePeriodValue(TimePeriod period,
Number value) Constructs a new data item.
period - the time period (null not permitted).value - the value associated with the time period.
TimePeriodValue
public TimePeriodValue(TimePeriod period,
double value) Constructs a new data item.
period - the time period (null not permitted).value - the value associated with the time period.
clone
public Object clone()
Clones the object.
Note: no need to clone the period or value since they are immutable
classes.
equals
public boolean equals(Object obj)
Tests this object for equality with the target object.
obj - the object (null permitted).
getValue
public Number getValue()
Returns the value.
- The value (possibly
null).
hashCode
public int hashCode()
Returns a hash code value for the object.
setValue
public void setValue(Number value)
Sets the value for this data item.
value - the new value (null permitted).
toString
public String toString()
Returns a string representing this instance, primarily for use in
debugging.