Package com.volantis.shared.metadata.value

Examples of com.volantis.shared.metadata.value.UnitValue


        NumberValueImpl numberValue = new MutableNumberValueImpl();
        numberValue.setValue(new Double(10));
        mutableQuantityValue.setMagnitudeValue( numberValue );

        UnitValue unitValue = QuantityUnits.CENTIMETERS;
        mutableQuantityValue.setUnitValue(unitValue);

        Number expectedResultInMillimeters = new Double(100);
        Number result =
                mutableQuantityValue.getMagnitudeAsNumber(QuantityUnits.MILLIMETERS);
View Full Code Here

TOP

Related Classes of com.volantis.shared.metadata.value.UnitValue

Copyright © 2018 www.massapicom. 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.