Interface ConverterFactory<S,R>
- Type Parameters:
S
- the source type converters created by this factory can convert fromR
- the target range (or base) type converters created by this factory can convert to; for exampleNumber
for a set of number subtypes.
public interface ConverterFactory<S,R>
A factory for "ranged" converters that can convert objects from S to subtypes of R.Implementations may additionally implement
ConditionalConverter
.- Since:
- 3.0
- Author:
- Keith Donald
- See Also:
ConditionalConverter
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description <T extends R>
Converter<S,T>getConverter(Class<T> targetType)
Get the converter to convert from S to target type T, where T is also an instance of R.
Method Detail
getConverter
<T extends R> Converter<S,T> getConverter(Class<T> targetType)
Get the converter to convert from S to target type T, where T is also an instance of R.- Type Parameters:
T
- the target type- Parameters:
targetType
- the target type to convert to- Returns:
- a converter from S to T