Class RatioValue

  • public class RatioValue
    extends java.lang.Object
    Utility class to represent ratio and percentage values between 0 and 100
    • Constructor Detail

      • RatioValue

        public RatioValue​(double percent)
    • Method Detail

      • getAsRatio

        public double getAsRatio()
      • getAsPercent

        public double getAsPercent()
      • toString

        public java.lang.String toString()
        toString in class java.lang.Object
      • parseRatioValue

        public static RatioValue parseRatioValue​(java.lang.String sValue)
        Parses the provided string as a RatioValue, the string can either be in percentage format (eg. 73.5%), or a floating-point ratio format (eg. 0.735)