类 AbstractConditionalEnumConverter

java.lang.Object
cn.taketoday.core.conversion.support.AbstractConditionalEnumConverter
所有已实现的接口:
ConditionalConverter
直接已知子类:
EnumToIntegerConverter, EnumToStringConverter

abstract class AbstractConditionalEnumConverter extends Object implements ConditionalConverter
A ConditionalConverter base implementation for enum-based converters.
从以下版本开始:
4.0
作者:
Stephane Nicoll
  • 字段详细资料

  • 构造器详细资料

    • AbstractConditionalEnumConverter

      protected AbstractConditionalEnumConverter(ConversionService conversionService)
  • 方法详细资料

    • matches

      public boolean matches(TypeDescriptor sourceType, TypeDescriptor targetType)
      从接口复制的说明: ConditionalConverter
      Should the conversion from sourceType to targetType currently under consideration be selected?
      指定者:
      matches 在接口中 ConditionalConverter
      参数:
      sourceType - the type descriptor of the field we are converting from
      targetType - the type descriptor of the field we are converting to
      返回:
      true if conversion should be performed, false otherwise