Package com.thinkaurelius.titan.core.attribute

Examples of com.thinkaurelius.titan.core.attribute.FullFloat


    @Override
    public FullFloat convert(Object value) {
        if (value instanceof Number) {
            double d = ((Number)value).doubleValue();
            if (d<Float.MIN_VALUE || d>Float.MAX_VALUE) throw new IllegalArgumentException("Value too large for float: " + value);
            return new FullFloat((float)d);
        } else if (value instanceof String) {
            return new FullFloat(Float.parseFloat((String) value));
        } else return null;
    }
View Full Code Here

TOP

Related Classes of com.thinkaurelius.titan.core.attribute.FullFloat

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.