public interface TypeConverter
ConversionService for the primary
 user API to Spring's conversion facilities.| Modifier and Type | Method and Description | 
|---|---|
| boolean | canConvert(org.springframework.core.convert.TypeDescriptor sourceType,
          org.springframework.core.convert.TypeDescriptor targetType)Return  trueif the type converter can convert the specified type
 to the desired target type. | 
| Object | convertValue(Object value,
            org.springframework.core.convert.TypeDescriptor sourceType,
            org.springframework.core.convert.TypeDescriptor targetType)Convert (or coerce) a value from one type to another, for example from a
  booleanto aString. | 
boolean canConvert(@Nullable
                   org.springframework.core.convert.TypeDescriptor sourceType,
                   org.springframework.core.convert.TypeDescriptor targetType)
true if the type converter can convert the specified type
 to the desired target type.sourceType - a type descriptor that describes the source typetargetType - a type descriptor that describes the requested result typetrue if that conversion can be performed@Nullable Object convertValue(@Nullable Object value, @Nullable org.springframework.core.convert.TypeDescriptor sourceType, org.springframework.core.convert.TypeDescriptor targetType)
boolean to a String.
 The TypeDescriptor parameters enable support for typed collections:
 A caller may prefer a List<Integer>, for example, rather than
 simply any List.
value - the value to be convertedsourceType - a type descriptor that supplies extra information about the
 source objecttargetType - a type descriptor that supplies extra information about the
 requested result typeEvaluationException - if conversion failed or is not possible to begin with