Class StringStatistic

  • All Implemented Interfaces:
    Statistic

    public class StringStatistic
    extends AbstractStatistic
    Trivial string based statistic.
    Since:
    0.6.0
    Author:
    Erich Schubert
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.lang.String val
      Storage
    • Constructor Summary

      Constructors 
      Constructor Description
      StringStatistic​(java.lang.String key)
      Constructor.
      StringStatistic​(java.lang.String key, java.lang.String val)
      Constructor.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String formatValue()
      Get a formatted version of the value, for output.
      void setString​(java.lang.String val)
      Set the value.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Field Detail

      • val

        private java.lang.String val
        Storage
    • Constructor Detail

      • StringStatistic

        public StringStatistic​(java.lang.String key,
                               java.lang.String val)
        Constructor.
        Parameters:
        key - Key
        val - Value
      • StringStatistic

        public StringStatistic​(java.lang.String key)
        Constructor.
        Parameters:
        key - Key
    • Method Detail

      • setString

        public void setString​(java.lang.String val)
        Set the value.
        Parameters:
        val - Value
      • formatValue

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