Package com.helger.commons.typeconvert
Class TypeConverterProviderExact
java.lang.Object
com.helger.commons.typeconvert.TypeConverterProviderExact
- All Implemented Interfaces:
ITypeConverterProvider
An exact type converter provider. Implemented as a singleton.
- Author:
- Philip Helger
-
Method Summary
Modifier and TypeMethodDescriptionstatic TypeConverterProviderExactgetTypeConverter(Class<?> aSrcClass, Class<?> aDstClass) Find a type converter from the source class to the destination class.
-
Method Details
-
getInstance
-
getTypeConverter
@Nullable public ITypeConverter<Object,Object> getTypeConverter(@Nonnull Class<?> aSrcClass, @Nonnull Class<?> aDstClass) Description copied from interface:ITypeConverterProviderFind a type converter from the source class to the destination class.- Specified by:
getTypeConverterin interfaceITypeConverterProvider- Parameters:
aSrcClass- The source class. May not benull.aDstClass- The destination class. May not benull.- Returns:
nullif no such type converter was found
-