Class RoundedDoubleConverter

  • All Implemented Interfaces:
    org.stagemonitor.configuration.converter.ValueConverter<java.lang.Double>

    public class RoundedDoubleConverter
    extends org.stagemonitor.configuration.converter.AbstractValueConverter<java.lang.Double>
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static int DEFAULT_PRECISION  
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.Double convert​(java.lang.String s)  
      double round​(double value)  
      java.lang.String toString​(java.lang.Double value)  
      static RoundedDoubleConverter withDefaultPrecision()  
      • Methods inherited from class org.stagemonitor.configuration.converter.AbstractValueConverter

        toSafeString
      • Methods inherited from class java.lang.Object

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

      • convert

        public java.lang.Double convert​(java.lang.String s)
                                 throws java.lang.IllegalArgumentException
        Throws:
        java.lang.IllegalArgumentException
      • toString

        public java.lang.String toString​(java.lang.Double value)
      • round

        public double round​(double value)