Package com.volantis.xml.expression.atomic.numeric

Examples of com.volantis.xml.expression.atomic.numeric.IntValue


    private int getIntRound(Value value) {
        if (value instanceof DoubleValue) {
            DoubleValue doubleValue = (DoubleValue) value;
            return (int) Math.round(doubleValue.asJavaDouble());
        } else if (value instanceof IntValue) {
            IntValue intValue = (IntValue) value;
            return intValue.asJavaInt();
        } else {
            throw new IllegalArgumentException(
                    "'" + value + "' is not a number");
        }
    }
View Full Code Here

TOP

Related Classes of com.volantis.xml.expression.atomic.numeric.IntValue

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.