com.hammurapi.convert
Interface Converter
public interface Converter
Converts objects from one type to another, e.g. Integer to String.
- Author:
- Pavel
|
Method Summary |
|
convert(S source,
Class<T> targetType,
Context context)
Converts object to requested target type. |
convert
<S,T> T convert(S source,
Class<T> targetType,
Context context)
throws ConversionException
- Converts object to requested target type.
- Parameters:
source - Source object.targetType - Target type.context - Conversion context.
- Returns:
- Converted object.
- Throws:
ConversionException