Package net.fortytwo.ripple.model

Examples of net.fortytwo.ripple.model.NumericValue


        return l;
    }

    public void testTypes()
            throws Exception {
        NumericValue
                intLit = new SesameNumericValue(5),
                doubleLit = new SesameNumericValue(3.1415926);

        assertEquals(intLit.getDatatype(), NumericValue.Type.INTEGER);
        assertEquals(doubleLit.getDatatype(), NumericValue.Type.DOUBLE);

        assertEquals(
                intLit.abs().getDatatype(),
                NumericValue.Type.INTEGER);
        assertEquals(
                doubleLit.abs().getDatatype(),
                NumericValue.Type.DOUBLE);
View Full Code Here

TOP

Related Classes of net.fortytwo.ripple.model.NumericValue

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.