@Singleton public class OptionalValuesSerializer extends com.fasterxml.jackson.databind.JsonSerializer<OptionalValues<?>>
OptionalValues
.Constructor and Description |
---|
OptionalValuesSerializer() |
OptionalValuesSerializer(JacksonConfiguration jacksonConfiguration) |
Modifier and Type | Method and Description |
---|---|
boolean |
isEmpty(com.fasterxml.jackson.databind.SerializerProvider provider,
OptionalValues<?> value) |
void |
serialize(OptionalValues<?> value,
com.fasterxml.jackson.core.JsonGenerator gen,
com.fasterxml.jackson.databind.SerializerProvider serializers) |
public OptionalValuesSerializer()
@Inject public OptionalValuesSerializer(JacksonConfiguration jacksonConfiguration)
public boolean isEmpty(com.fasterxml.jackson.databind.SerializerProvider provider, OptionalValues<?> value)
isEmpty
in class com.fasterxml.jackson.databind.JsonSerializer<OptionalValues<?>>
public void serialize(OptionalValues<?> value, com.fasterxml.jackson.core.JsonGenerator gen, com.fasterxml.jackson.databind.SerializerProvider serializers) throws IOException
serialize
in class com.fasterxml.jackson.databind.JsonSerializer<OptionalValues<?>>
IOException