Package org.hglteam.conversion.api
Class GenericTypeConverter<S,T>
- java.lang.Object
-
- org.hglteam.conversion.api.GenericTypeConverter<S,T>
-
- All Implemented Interfaces:
ExplicitTypeConverter<S,T>,TypeConverter<S,T>
public abstract class GenericTypeConverter<S,T> extends Object implements ExplicitTypeConverter<S,T>
-
-
Constructor Summary
Constructors Constructor Description GenericTypeConverter(BiFunction<ConversionContext,S,T> conversionFunction)GenericTypeConverter(Function<S,T> conversionFunction)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Tconvert(ConversionContext context, S source)-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.hglteam.conversion.api.ExplicitTypeConverter
getConversionKey
-
-
-
-
Constructor Detail
-
GenericTypeConverter
public GenericTypeConverter(BiFunction<ConversionContext,S,T> conversionFunction)
-
-
Method Detail
-
convert
public T convert(ConversionContext context, S source)
- Specified by:
convertin interfaceTypeConverter<S,T>
-
-