类 IntegerToEnumConverterFactory

java.lang.Object
cn.taketoday.core.conversion.support.IntegerToEnumConverterFactory
所有已实现的接口:
ConverterFactory<Integer,Enum>

final class IntegerToEnumConverterFactory extends Object implements ConverterFactory<Integer,Enum>
Converts from a Integer to a Enum by calling Class.getEnumConstants().
从以下版本开始:
4.0
作者:
Yanming Zhou, Stephane Nicoll
  • 构造器详细资料

    • IntegerToEnumConverterFactory

      IntegerToEnumConverterFactory()
  • 方法详细资料

    • getConverter

      public <T extends Enum> Converter<Integer,T> getConverter(Class<T> targetType)
      从接口复制的说明: ConverterFactory
      Get the converter to convert from S to target type T, where T is also an instance of R.
      指定者:
      getConverter 在接口中 ConverterFactory<Integer,Enum>
      类型参数:
      T - the target type
      参数:
      targetType - the target type to convert to
      返回:
      a converter from S to T