Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 package com.fasterxml.jackson.datatype.guava;
 
 
 
public class GuavaSerializers extends Serializers.Base
    @Override
    public JsonSerializer<?> findSerializer(SerializationConfig configJavaType typeBeanDescription beanDesc) {
        Class<?> raw = type.getRawClass();
        if(Optional.class.isAssignableFrom(raw)){
            return new GuavaOptionalSerializer(type);
        }
        return super.findSerializer(configtypebeanDesc);
    }
    @Override
            MapLikeType typeBeanDescription beanDescJsonSerializer<ObjectkeySerializer,
            TypeSerializer elementTypeSerializerJsonSerializer<ObjectelementValueSerializer)
    {
        if (Multimap.class.isAssignableFrom(type.getRawClass())) {
            return new MultimapSerializer(configtypebeanDesckeySerializer,
                    elementTypeSerializerelementValueSerializer);
        }
        return null;
    }
New to GrepCode? Check out our FAQ X