Class Measurement


  • public class Measurement
    extends java.lang.Object
    • Constructor Summary

      Constructors 
      Constructor Description
      Measurement()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static double convert​(double value, double units_from, double units_to)
      Converts a measurement into specified units
      • Methods inherited from class java.lang.Object

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

      • Measurement

        public Measurement()
    • Method Detail

      • convert

        public static double convert​(double value,
                                     double units_from,
                                     double units_to)
        Converts a measurement into specified units
        Parameters:
        value - the value of the measurement e.g. 10
        units_from - the unit type to convert from e.g. Measurement.MM
        units_to - the unit type to convert to e.g. Measurement.IN