Top Description Inners Methods
com.fasterxml.jackson.databind.util

public Interface Converter<IN, OUT>

Known Direct Implementers
com.fasterxml.jackson.databind.util.Converter.None, com.fasterxml.jackson.databind.util.StdConverter, com.fasterxml.jackson.databind.deser.impl.JavaUtilCollectionsDeserializers.JavaUtilCollectionsConverter
Type Parameters
<IN>
Type of values converter takes
<OUT>
Result type from conversion
Imports
com.fasterxml.jackson.databind.JavaType, com.fasterxml.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.

Since
2.1
See Also
com.fasterxml.jackson.databind.ser.std.StdDelegatingSerializer, com.fasterxml.jackson.databind.deser.std.StdDelegatingDeserializer

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(IN value)

Main conversion method.

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(IN value)

Main conversion method.

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

Since
2.2
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).

Since
2.2
com.fasterxml.jackson.databind.util back to summary

public abstract Class Converter.None

extends Object
implements Converter<Object, Object>
Class Inheritance
All Implemented Interfaces
com.fasterxml.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 com.fasterxml.jackson.databind.annotation.JsonSerialize, property converter (and related)

Since
2.2

Constructor Summary

AccessConstructor and Description
public
None()

Method Summary

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

Noneback to summary
public None()