Class TimeSeries.DataPoint

  • Enclosing class:
    TimeSeries

    public final class TimeSeries.DataPoint
    extends java.lang.Object
    Represents a datapoint in a time series. Millisecond epoch time is used for the timestamp.
    • Constructor Summary

      Constructors 
      Constructor Description
      DataPoint​(double value)
      Construct a new data point with the current time as the timestamp.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      long getTimeStamp()  
      double getValue()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • DataPoint

        public DataPoint​(double value)
        Construct a new data point with the current time as the timestamp.
        Parameters:
        value - the value of the data point
    • Method Detail

      • getTimeStamp

        public long getTimeStamp()
        Returns:
        the timestamp of the data point in milliseconds epoch time
      • getValue

        public double getValue()
        Returns:
        the value of the data point