接口 ConverterFactory<S,R>

类型参数:
S - the source type converters created by this factory can convert from
R - the target range (or base) type converters created by this factory can convert to; for example Number for a set of number subtypes.
所有已知实现类:
CharacterToNumberFactory, IntegerToEnumConverterFactory, NumberToNumberConverterFactory, StringToEnumConverterFactory, StringToNumberConverterFactory

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.

从以下版本开始:
3.0
作者:
Keith Donald
另请参阅:
  • 方法概要

    修饰符和类型
    方法
    说明
    <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.
  • 方法详细资料

    • 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.
      类型参数:
      T - the target type
      参数:
      targetType - the target type to convert to
      返回:
      a converter from S to T