Class BoundaryStatisticImpl

    • Constructor Detail

      • BoundaryStatisticImpl

        public BoundaryStatisticImpl​(long lower,
                                     long upper,
                                     String name,
                                     String unit,
                                     String desc,
                                     long startTime,
                                     long sampleTime)
        Constructs the instance of BoundaryStatistic that is immutable.
        Parameters:
        upper - The upper limit of this statistic
        lower - The lower limit of this statistic
        name - The name of the statistic
        unit - The unit of measurement for this statistic
        desc - A brief description of the statistic
        startTime - Time in milliseconds at which the measurement was started
        sampleTime - Time at which the last measurement was done.
    • Method Detail

      • getLowerBound

        public long getLowerBound()
        Returns the lowest possible value, that this statistic is permitted to attain
        Specified by:
        getLowerBound in interface BoundaryStatistic
        Returns:
        long the lowest permissible value
      • getUpperBound

        public long getUpperBound()
        Return the highest possible value, that this statistic is permitted to attain
        Specified by:
        getUpperBound in interface BoundaryStatistic
        Returns:
        long the highest permissible value