Class Datapoint


  • public class Datapoint
    extends Object
    See Also:
    • Constructor Detail

      • Datapoint

        public Datapoint​(@Nullable
                         Double average,
                         @Nullable
                         Double maximum,
                         @Nullable
                         Double minimum,
                         @Nullable
                         Date timestamp,
                         @Nullable
                         Double samples,
                         @Nullable
                         Double sum,
                         @Nullable
                         Unit unit,
                         @Nullable
                         String customUnit)
    • Method Detail

      • getAverage

        @Nullable
        public Double getAverage()
        return Average of samples for the datapoint.
      • getMaximum

        @Nullable
        public Double getMaximum()
        return Maximum of the samples used for the datapoint.
      • getMinimum

        @Nullable
        public Double getMinimum()
        return Minimum of samples for the datapoint.
      • getTimestamp

        @Nullable
        public Date getTimestamp()
        return Indicates the beginning of the time aggregation for this value and samples.
      • getSamples

        @Nullable
        public Double getSamples()
        return The number of Measurements that contributed to the aggregate value of this datapoint.
      • getSum

        @Nullable
        public Double getSum()
        return Sum of samples for the datapoint.
      • getUnit

        @Nullable
        public Unit getUnit()
        return Standard unit used for the datapoint.
      • getCustomUnit

        @Nullable
        public String getCustomUnit()
        return CustomUnit defined for the datapoint.
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object