Package org.hglteam.conversion
Class GenericConverter
- java.lang.Object
-
- org.hglteam.conversion.GenericConverter
-
-
Constructor Summary
Constructors Constructor Description GenericConverter(ConversionContext conversionContext)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <TS,TD>
TDconvert(TS source, Class<? extends TD> targetClass)<TS,TD>
TDconvert(TS source, Type targetType)<TS,TD>
TDconvert(TS source, Type sourceType, Type targetType)<TS,TD>
TDconvert(TS source, TypeConversionContext context)<TS,TD>
TDconvert(TS source, ConversionKey contersionKey)<TS,TD>
Function<TS,TD>convertTo(Class<? extends TD> targetClass)<TS,TD>
Function<TS,TD>convertTo(Type targetType)<TS,TD>
Function<TS,TD>convertTo(Type sourceType, Type targetType)<TS,TD>
Function<TS,TD>convertTo(TypeConversionContext context)<TS,TD>
Function<TS,TD>convertTo(ConversionKey conversionKey)<TD> ContextualConversionBuilder<TD>withContext(Class<? extends TD> targetClass)<TD> ContextualConversionBuilder<TD>withContext(Type targetClass)
-
-
-
Constructor Detail
-
GenericConverter
public GenericConverter(ConversionContext conversionContext)
-
-
Method Detail
-
convert
public <TS,TD> TD convert(TS source, TypeConversionContext context)
-
convert
public <TS,TD> TD convert(TS source, ConversionKey contersionKey)
-
convert
public <TS,TD> TD convert(TS source, Type targetType)
-
convert
public <TS,TD> TD convert(TS source, Class<? extends TD> targetClass)
-
convertTo
public <TS,TD> Function<TS,TD> convertTo(TypeConversionContext context)
-
convertTo
public <TS,TD> Function<TS,TD> convertTo(ConversionKey conversionKey)
-
withContext
public <TD> ContextualConversionBuilder<TD> withContext(Type targetClass)
- Specified by:
withContextin interfaceConverter
-
withContext
public <TD> ContextualConversionBuilder<TD> withContext(Class<? extends TD> targetClass)
- Specified by:
withContextin interfaceConverter
-
-