Top Description Inners Methods
tools.jackson.databind.util

public Interface Converter<IN, OUT>

Known Direct Implementers
tools.jackson.databind.util.Converter.None, tools.jackson.databind.util.StdConverter, tools.jackson.databind.deser.jdk.JavaUtilCollectionsDeserializers.JavaUtilCollectionsConverter
Type Parameters
<IN>
Type of values converter takes
<OUT>
Result type from conversion
Imports
tools.jackson.databind.*, tools.jackson.databind.type.TypeFactory

Helper interface for things that convert Objects of one type to another.

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.

See Also
tools.jackson.databind.ser.std.StdDelegatingSerializer, tools.jackson.databind.deser.std.StdConvertingDeserializer

Nested and Inner Type Summary

Modifier and TypeClass and Description
public abstract static class
Converter.None

This marker class is only to be used with annotations, to indicate that no converter is to be used.

Method Summary

Modifier and TypeMethod and Description
public OUT
convert(DeserializationContext ctxt, IN value)

Conversion method to use on deserialization side.

public OUT
convert(SerializationContext ctxt, IN value)

Conversion method to use on serialization side.

public 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).

public 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).

Method Detail

convertback to summary
public OUT convert(DeserializationContext ctxt, IN value)

Conversion method to use on deserialization side.

convertback to summary
public OUT convert(SerializationContext ctxt, IN value)

Conversion method to use on serialization side.

getInputTypeback to summary
public 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).

getOutputTypeback to summary
public 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).

tools.jackson.databind.util back to summary

public abstract Class Converter.None

extends Object
implements Converter<Object, Object>
Class Inheritance
All Implemented Interfaces
tools.jackson.databind.util.Converter

This marker class is only to be used with annotations, to indicate that no converter is to be used.

Specifically, this class is to be used as the marker for annotation tools.jackson.databind.annotation.JsonSerialize, property converter (and related)

Constructor Summary

AccessConstructor and Description
private
None()

Method Summary

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

Noneback to summary
private None()