Package com.helger.commons.typeconvert
Interface ITypeConverterProvider
-
- All Known Implementing Classes:
TypeConverterProviderBestMatch,TypeConverterProviderExact,TypeConverterProviderFuzzy,TypeConverterProviderRuleBased
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface public interface ITypeConverterProvider
Find the correct type converter provider from a source class to a destination class.- Author:
- Philip Helger
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ITypeConverter<Object,Object>getTypeConverter(Class<?> aSrcClass, Class<?> aDstClass)Find a type converter from the source class to the destination class.
-
-
-
Method Detail
-
getTypeConverter
@Nullable ITypeConverter<Object,Object> getTypeConverter(@Nonnull Class<?> aSrcClass, @Nonnull Class<?> aDstClass)
Find a type converter from the source class to the destination class.- Parameters:
aSrcClass- The source class. May not benull.aDstClass- The destination class. May not benull.- Returns:
nullif no such type converter was found
-
-