Interface Converter<S,T>
- All Known Implementing Classes:
StringToBooleanConverter
,StringToDateConverter
,StringToDoubleConverter
,StringToFloatConverter
,StringToIntegerConverter
,StringToLongConverter
,StringToShortConverter
,StringToStringConverter
public interface Converter<S,T>
Converts objects of S type to T type.
- Author:
- avasquez
-
Method Details
-
getSourceClass
Class<?> getSourceClass()Returns the class of the objects this converter converts from. -
getTargetClass
Class<?> getTargetClass()Returns the class of the objects this converter converts to. -
convert
Converts the source object from S type to T type.- Parameters:
source
- the object to convert- Returns:
- the converted object
-