public final class TimeSeriesItem extends NativeObjectContainer
DataPoint
Constructor and Description |
---|
TimeSeriesItem(Date time)
Creates a time series item setting the time passed as argument.
|
TimeSeriesItem(Date time,
double value)
Creates a time series item setting the time and the value passed as argument.
|
Modifier and Type | Method and Description |
---|---|
Date |
getTime()
Returns the time of time series item.
|
double |
getValue()
Returns the value of time series item.
|
void |
setValue(double value)
Sets the value of time series item.
|
checkValue, getArrayValue, getNativeObject, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValueOrArray, getValueOrArray, getValueOrArray, getValueOrArray, getValueOrArray, getValueOrArray, getValueOrArray, has, has, keys, remove, remove, removeIfExists, setArrayValue, setArrayValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, toJSON, type
public TimeSeriesItem(Date time)
Double.NaN
.time
- time of itempublic TimeSeriesItem(Date time, double value)
time
- time of itemvalue
- value of itempublic void setValue(double value)
value
- the value of time series itempublic double getValue()
public Date getTime()