Package org.hglteam.conversion
Class DefaultConverter
- java.lang.Object
-
- org.hglteam.conversion.DefaultConverter
-
-
Constructor Summary
Constructors Constructor Description DefaultConverter(ConversionMap conversionMap)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <S,T>
Tconvert(S source, Class<? extends T> targetClass)<S,T>
Tconvert(S source, Type targetType)<S,T>
Tconvert(S source, Type sourceType, Type targetType)<S,T>
Tconvert(S source, ConversionContext context)<S,T>
Tconvert(S source, ConversionKey contersionKey)<S,T>
Tconvert(S source, TypeDescriptor<? extends S> sourceType, TypeDescriptor<T> targetType)<S,T>
Tconvert(S source, TypeDescriptor<T> targetType)<S,T>
Function<S,T>convertTo(Class<? extends T> targetClass)<S,T>
Function<S,T>convertTo(Type targetType)<S,T>
Function<S,T>convertTo(Type sourceType, Type targetType)<S,T>
Function<S,T>convertTo(ConversionContext context)<S,T>
Function<S,T>convertTo(ConversionKey conversionKey)<S,T>
Function<S,T>convertTo(TypeDescriptor<? extends S> sourceType, TypeDescriptor<T> targetType)<S,T>
Function<S,T>convertTo(TypeDescriptor<T> targetType)<T> ContextualConversionBuilder<T>withContext(Class<? extends T> targetClass)<T> ContextualConversionBuilder<T>withContext(Type targetClass)<T> ContextualConversionBuilder<T>withContext(TypeDescriptor<T> targetTypeDescriptor)
-
-
-
Constructor Detail
-
DefaultConverter
public DefaultConverter(ConversionMap conversionMap)
-
-
Method Detail
-
convert
public <S,T> T convert(S source, ConversionContext context)
-
convert
public <S,T> T convert(S source, ConversionKey contersionKey)
-
convert
public <S,T> T convert(S source, TypeDescriptor<? extends S> sourceType, TypeDescriptor<T> targetType)
-
convert
public <S,T> T convert(S source, Type targetType)
-
convert
public <S,T> T convert(S source, TypeDescriptor<T> targetType)
-
convert
public <S,T> T convert(S source, Class<? extends T> targetClass)
-
convertTo
public <S,T> Function<S,T> convertTo(ConversionContext context)
-
convertTo
public <S,T> Function<S,T> convertTo(TypeDescriptor<? extends S> sourceType, TypeDescriptor<T> targetType)
-
convertTo
public <S,T> Function<S,T> convertTo(TypeDescriptor<T> targetType)
-
convertTo
public <S,T> Function<S,T> convertTo(ConversionKey conversionKey)
-
withContext
public <T> ContextualConversionBuilder<T> withContext(Type targetClass)
- Specified by:
withContextin interfaceConverter
-
withContext
public <T> ContextualConversionBuilder<T> withContext(Class<? extends T> targetClass)
- Specified by:
withContextin interfaceConverter
-
withContext
public <T> ContextualConversionBuilder<T> withContext(TypeDescriptor<T> targetTypeDescriptor)
- Specified by:
withContextin interfaceConverter
-
-