-
- All Known Implementing Classes:
DefaultConverterProvider
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface public interface ConverterProvider
AConverterProvider
providesConverter
implementations for any combination of types<T>
and<U>
.ConverterProvider
can be used together withRecordMapper
, e.g. when mappingJSON
orXML
data types onto POJO types using third party libraries like Jackson, Gson, JAXB, or others.- Author:
- Lukas Eder
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description <T,U>
@Nullable Converter<T,U>provide(Class<T> tType, Class<U> uType)
Provide a converter that can convert between<T>
and<U>
types.
-
-
-
Method Detail
-
provide
@Nullable <T,U> @Nullable Converter<T,U> provide(Class<T> tType, Class<U> uType)
Provide a converter that can convert between<T>
and<U>
types.- Returns:
- The converter for
<T, U>
, ornull
if no such converter could be provided, in case of which jOOQ'sDefaultConverterProvider
applies.
-
-