Class UnitUtils


  • public class UnitUtils
    extends Object
    Utility class for unit related functionality
    Author:
    markr
    • Constructor Detail

      • UnitUtils

        public UnitUtils()
    • Method Detail

      • convert

        public static double convert​(Units from,
                                     Units to,
                                     double value)
                              throws PlanItException
        convert between indicated units
        Parameters:
        from - unit
        to - unit
        value - to convert
        Returns:
        converted value
        Throws:
        PlanItException - thrown if error