类 ConvertingComparator.ConversionServiceConverter<S,T>

java.lang.Object
cn.taketoday.core.conversion.ConvertingComparator.ConversionServiceConverter<S,T>
所有已实现的接口:
Converter<S,T>
封闭类:
ConvertingComparator<S,T>

private static class ConvertingComparator.ConversionServiceConverter<S,T> extends Object implements Converter<S,T>
Adapts a ConversionService and targetType to a Converter.
  • 字段详细资料

    • conversionService

      private final ConversionService conversionService
    • targetType

      private final Class<? extends T> targetType
  • 构造器详细资料

    • ConversionServiceConverter

      public ConversionServiceConverter(ConversionService conversionService, Class<? extends T> targetType)
  • 方法详细资料

    • convert

      @Nullable public T convert(S source)
      从接口复制的说明: Converter
      Convert the source object of type S to target type T.
      指定者:
      convert 在接口中 Converter<S,T>
      参数:
      source - the source object to convert, which must be an instance of S (never null)
      返回:
      the converted object, which must be an instance of T (potentially null)