Package net.sf.cb2java.data

Examples of net.sf.cb2java.data.DecimalData


        // System.out.println(bigI);

        Data data = create();

        if (data instanceof DecimalData) {
            DecimalData dData = (DecimalData) data;

            BigDecimal bigD = new BigDecimal(bigI, decimalPlaces());

            dData.setValue(bigD);

            return data;
        } else {
            IntegerData iData = (IntegerData) data;
View Full Code Here


       
        BigInteger big = s == null ? null : new BigInteger(s);
        Data data = create();
       
        if (data instanceof DecimalData) {
            DecimalData dData = (DecimalData) data;
            BigDecimal bigD = big == null ? null : new BigDecimal(big, decimalPlaces());
           
            dData.setValue(bigD);
           
            return data;
        } else {
            IntegerData iData = (IntegerData) data;
           
View Full Code Here

        BigInteger bigI = new BigInteger(input);
       
        Data data = create();
       
        if (data instanceof DecimalData) {
            DecimalData dData = (DecimalData) data;
           
            BigDecimal bigD = new BigDecimal(bigI, decimalPlaces());
           
            dData.setValue(bigD);
           
            return data;
        } else {
            IntegerData iData = (IntegerData) data;
           
View Full Code Here

    }
   
    public Data create()
    {
        if (decimalPlaces() > 0) {
            return new DecimalData(this);
        } else {
            return new IntegerData(this);
        }
    }
View Full Code Here

        BigInteger big = new BigInteger(s);
        Data data = create();
       
        if (data instanceof DecimalData) {
            DecimalData dData = (DecimalData) data;
           
            dData.setValue(new BigDecimal(big, decimalPlaces()));
           
            return data;
        } else {
            IntegerData iData = (IntegerData) data;
           
View Full Code Here

TOP

Related Classes of net.sf.cb2java.data.DecimalData

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.