Class Ratio

    • Constructor Detail

      • Ratio

        public Ratio​(float... f)
    • Method Detail

      • getNumerator

        public float getNumerator()
      • getDenominator

        public float getDenominator()
      • toString

        public String toString()
        Gets "x/y" representation.
        Overrides:
        toString in class Object
      • getPercentage

        @Exported
        public int getPercentage()
        Gets the percentage in integer.
        Returns:
        percentage
      • getPercentageFloat

        @Exported
        public float getPercentageFloat()
        Gets the percentage in float.
        Returns:
        percentage
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object
      • addValue

        public void addValue​(String v)
      • setValue

        public void setValue​(String v)
      • isInitialized

        public boolean isInitialized()