Class TimeSeriesItem


  • public final class TimeSeriesItem
    extends AbstractDataPoint
    Default implementation for time series item interface in order to manage time series item (time and value).
    Author:
    Andrea "Stock" Stocchero
    See Also:
    DataPoint
    • Constructor Detail

      • TimeSeriesItem

        public TimeSeriesItem​(Date time)
        Creates a time series item setting the time passed as argument. By default the value is Double.NaN.
        Parameters:
        time - time of item
      • TimeSeriesItem

        public TimeSeriesItem​(Date time,
                              double value)
        Creates a time series item setting the time and the value passed as argument.
        Parameters:
        time - time of item
        value - value of item
    • Method Detail

      • setValue

        public void setValue​(double value)
        Sets the value of time series item.
        Parameters:
        value - the value of time series item
      • getValue

        public double getValue()
        Returns the value of time series item.
        Returns:
        the value of time series item
      • getTime

        public Date getTime()
        Returns the time of time series item.
        Returns:
        the time of time series item