Package javax.measure.unit

Examples of javax.measure.unit.UnitFormat.parseObject()


    UnitFormat unitFormat = UnitFormat.getInstance();
    Unit uom = null;

    try {
      // unit of measure is meter
      uom = (Unit) unitFormat.parseObject("m");
    } catch (ParseException ex1) {
      uom = null;
    }

   
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.