Interface TypeConverter<S,T>
- Type Parameters:
S- The source generic typeT- The target generic type
public interface TypeConverter<S,T>
All type converters must implement this interface. A type converter must be
stateless, simple and thread safe. Even if direct injection is available,
it is not recommended to perform too complex, blocking or slow operation.
-
Method Summary
-
Method Details
-
convert
Converts the given source object to the target type.- Parameters:
source- The source object to convert- Returns:
- The converted object
-