Class TimePeriodValue
java.lang.Object
org.jfree.data.time.TimePeriodValue
- All Implemented Interfaces:
Serializable,Cloneable
Represents a time period and an associated value.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionTimePeriodValue(TimePeriod period, double value) Constructs a new data item.TimePeriodValue(TimePeriod period, Number value) Constructs a new data item. -
Method Summary
Modifier and TypeMethodDescriptionclone()Clones the object.booleanTests this object for equality with the target object.Returns the time period.getValue()Returns the value.inthashCode()Returns a hash code value for the object.voidSets the value for this data item.toString()Returns a string representing this instance, primarily for use in debugging.
-
Constructor Details
-
TimePeriodValue
Constructs a new data item.- Parameters:
period- the time period (nullnot permitted).value- the value associated with the time period.- Throws:
IllegalArgumentException- ifperiodisnull.
-
TimePeriodValue
Constructs a new data item.- Parameters:
period- the time period (nullnot permitted).value- the value associated with the time period.- Throws:
IllegalArgumentException- ifperiodisnull.
-
-
Method Details
-
getPeriod
-
getValue
-
setValue
-
equals
-
hashCode
-
clone
-
toString
-