Class DoubleStatistic

  • All Implemented Interfaces:
    Statistic

    public class DoubleStatistic
    extends AbstractStatistic
    Trivial double-valued statistic.
    Since:
    0.6.0
    Author:
    Erich Schubert
    • Field Summary

      Fields 
      Modifier and Type Field Description
      (package private) double value
      Statistic value.
    • Constructor Summary

      Constructors 
      Constructor Description
      DoubleStatistic​(java.lang.String key)
      Constructor.
      DoubleStatistic​(java.lang.String key, double value)
      Constructor.
    • Field Detail

      • value

        double value
        Statistic value.
    • Constructor Detail

      • DoubleStatistic

        public DoubleStatistic​(java.lang.String key)
        Constructor.
        Parameters:
        key - Key
      • DoubleStatistic

        public DoubleStatistic​(java.lang.String key,
                               double value)
        Constructor.
        Parameters:
        key - Key
        value - Value
    • Method Detail

      • setDouble

        public DoubleStatistic setDouble​(double value)
        Set the statistics.
        Parameters:
        value - New value
        Returns:
        this
      • formatValue

        public java.lang.String formatValue()
        Description copied from interface: Statistic
        Get a formatted version of the value, for output.
        Returns:
        Value