Class ContextualConversionBuilder<T>
- java.lang.Object
-
- org.hglteam.conversion.api.context.ContextualConversionBuilder<T>
-
public class ContextualConversionBuilder<T> extends Object
-
-
Constructor Summary
Constructors Constructor Description ContextualConversionBuilder(Converter converter, Class<? extends T> targetClass)ContextualConversionBuilder(Converter converter, Type targetType)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <S> Tconvert(S source)ContextualConversionBuilder<T>withArg(Object key, Object value)ContextualConversionBuilder<T>withArgs(Map<Object,Object> args)ContextualConversionBuilder<T>withConvertionKey(ConversionKey conversionKey)ContextualConversionBuilder<T>withSourceType(Type sourceType)ContextualConversionBuilder<T>withTargetType(Type targetType)
-
-
-
Method Detail
-
withConvertionKey
public ContextualConversionBuilder<T> withConvertionKey(ConversionKey conversionKey)
-
withSourceType
public ContextualConversionBuilder<T> withSourceType(Type sourceType)
-
withTargetType
public ContextualConversionBuilder<T> withTargetType(Type targetType)
-
withArgs
public ContextualConversionBuilder<T> withArgs(Map<Object,Object> args)
-
withArg
public ContextualConversionBuilder<T> withArg(Object key, Object value)
-
convert
public <S> T convert(S source)
-
-