Package com.fasterxml.jackson.datatype.guava.serializer

Examples of com.fasterxml.jackson.datatype.guava.serializer.GuavaOptionalSerializer


    @Override
    public JsonSerializer<?> findSerializer(SerializationConfig config, JavaType type,
            BeanDescription beanDesc, BeanProperty property) {
        Class<?> raw = type.getRawClass();
        if(Optional.class.isAssignableFrom(raw)){
            return new GuavaOptionalSerializer(type);
        }
        return super.findSerializer(config, type, beanDesc, property);
    }
View Full Code Here

TOP

Related Classes of com.fasterxml.jackson.datatype.guava.serializer.GuavaOptionalSerializer

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.