Package org.javalite.conversion
Interface Converter<S,T>
- Type Parameters:
S
- Source typeT
- Destination type
- All Known Implementing Classes:
BlankToNullConverter
,ConverterAdapter
,DateToStringConverter
,StringToSqlDateConverter
,StringToTimestampConverter
,ZeroToNullConverter
public interface Converter<S,T>
Converts instances of S to T.
- Author:
- Eric Nielsen
-
Method Summary
-
Method Details
-
canConvert
Returns true if this converter can convert instances of sourceClass to destinationClass.- Parameters:
sourceClass
- source ClassdestinationClass
- destination Class- Returns:
- true if this converter can convert instances of sourceClass to destinationClass, false otherwise
-
convert
Converts instance of S to T.- Parameters:
source
- instance of S- Returns:
- instance of S converted to type T
-