|
JFreeChart 1.0.14-redhat-2 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jfree.data.time.TimePeriodValue
public class TimePeriodValue
Represents a time period and an associated value.
Constructor Summary | |
---|---|
TimePeriodValue(TimePeriod period,
double value)
Constructs a new data item. |
|
TimePeriodValue(TimePeriod period,
Number value)
Constructs a new data item. |
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public TimePeriodValue(TimePeriod period, Number value)
period
- the time period (null
not permitted).value
- the value associated with the time period.
IllegalArgumentException
- if period
is
null
.public TimePeriodValue(TimePeriod period, double value)
period
- the time period (null
not permitted).value
- the value associated with the time period.
IllegalArgumentException
- if period
is
null
.Method Detail |
---|
public TimePeriod getPeriod()
null
).public Number getValue()
null
).setValue(Number)
public void setValue(Number value)
value
- the new value (null
permitted).getValue()
public boolean equals(Object obj)
equals
in class Object
obj
- the object (null
permitted).
public int hashCode()
hashCode
in class Object
public Object clone()
Note: no need to clone the period or value since they are immutable classes.
clone
in class Object
public String toString()
toString
in class Object
|
JFreeChart 1.0.14-redhat-2 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |