spring-framework / org.springframework.core.convert.converter / ConditionalConverter / matches

matches

abstract fun matches(sourceType: TypeDescriptor, targetType: TypeDescriptor): Boolean

Should the conversion from sourceType to targetType currently under consideration be selected?

Parameters

sourceType - the type descriptor of the field we are converting from

targetType - the type descriptor of the field we are converting to

Return
true if conversion should be performed, false otherwise