Package org.planit.utils.unit
Class UnitUtils
- java.lang.Object
-
- org.planit.utils.unit.UnitUtils
-
public class UnitUtils extends Object
Utility class for unit related functionality- Author:
- markr
-
-
Constructor Summary
Constructors Constructor Description UnitUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static double
convert(Units from, Units to, double value)
convert between indicated units
-
-
-
Method Detail
-
convert
public static double convert(Units from, Units to, double value) throws PlanItException
convert between indicated units- Parameters:
from
- unitto
- unitvalue
- to convert- Returns:
- converted value
- Throws:
PlanItException
- thrown if error
-
-