Package restx.jackson

Examples of restx.jackson.FixedPrecision


        return new BigDecimal(jp.getLongValue()).divide(divisor);
    }

    @Override
    public JsonDeserializer<?> createContextual(DeserializationContext ctxt, BeanProperty property) throws JsonMappingException {
        FixedPrecision fixedPrecision = ((Field) property.getMember().getMember()).getAnnotation(FixedPrecision.class);
        if (fixedPrecision != null) {
            return new FixedPrecisionDeserializer(fixedPrecision.value());
        }
        return this;
    }
View Full Code Here

TOP

Related Classes of restx.jackson.FixedPrecision

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.