IN - Type of values converter takesOUT - Result type from conversionpublic interface Converter<IN,OUT>
NOTE: implementors are strongly encouraged to extend StdConverter
instead of directly implementing Converter, since that can
help with default implementation of typically boiler-plate code.
StdDelegatingSerializer,
StdDelegatingDeserializer| Modifier and Type | Interface and Description |
|---|---|
static class |
Converter.None
This marker class is only to be used with annotations, to
indicate that no converter is to be used.
|
| Modifier and Type | Method and Description |
|---|---|
default OUT |
convert(DeserializationContext ctxt,
IN value)
Conversion method that also takes in
DeserializationContext,
useful for some more complex conversions. |
OUT |
convert(IN value)
Main conversion method.
|
default OUT |
convert(SerializerProvider provider,
IN value)
Conversion method that also takes in
SerializerProvider,
useful for some more complex conversions. |
JavaType |
getInputType(TypeFactory typeFactory)
Method that can be used to find out actual input (source) type; this
usually can be determined from type parameters, but may need
to be implemented differently from programmatically defined
converters (which cannot change static type parameter bindings).
|
JavaType |
getOutputType(TypeFactory typeFactory)
Method that can be used to find out actual output (target) type; this
usually can be determined from type parameters, but may need
to be implemented differently from programmatically defined
converters (which cannot change static type parameter bindings).
|
default OUT convert(DeserializationContext ctxt, IN value)
DeserializationContext,
useful for some more complex conversions.default OUT convert(SerializerProvider provider, IN value)
SerializerProvider,
useful for some more complex conversions.JavaType getInputType(TypeFactory typeFactory)
JavaType getOutputType(TypeFactory typeFactory)
Copyright © 2008–2025 FasterXML. All rights reserved.