Examples of canConvertToInt()


Examples of com.fasterxml.jackson.databind.JsonNode.canConvertToInt()

        final JsonNode node = schema.get(keyword);
        final boolean isLong = valueIsLong(node);
        ret.put("valueIsLong", isLong);

        if (isLong) {
            ret.put(keyword, node.canConvertToInt()
                ? FACTORY.numberNode(node.intValue())
                : FACTORY.numberNode(node.longValue()));
            return ret;
        }
View Full Code Here

Examples of com.fasterxml.jackson.databind.JsonNode.canConvertToInt()

    }

    @Override
    public int getIntValue() throws IOException, JsonParseException {
        JsonNode numericNode = currentNumericNode();
        if (numericNode.canConvertToInt()) {
            return currentNumericNode().intValue();
        }
        throw _constructError("Numeric value ("+getText()+") out of range of Java short");
    }
View Full Code Here

Examples of com.fasterxml.jackson.databind.JsonNode.canConvertToInt()

    }

    @Override
    public int getIntValue() throws IOException, JsonParseException {
        JsonNode numericNode = currentNumericNode();
        if (numericNode.canConvertToInt()) {
            return currentNumericNode().intValue();
        }
        throw _constructError("Numeric value ("+getText()+") out of range of Java short");
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.