S- source type
D- destination type
public interface ConditionalConverter<S,D> extends Converter<S,D>
|Modifier and Type||Interface and Description|
|Modifier and Type||Method and Description|
Determines whether the converter matches and supports conversion from
ConditionalConverter.MatchResult match(Class<?> sourceType, Class<?> destinationType)
In the case of a partial match, the converter is indicating that it does not recognise the
source type but that it may still be capable performing the conversion implicitly by parsing the
result of calling
Object.toString() or by some other means which similarly does not
require knowledge of the type at compile time.
Implicit conversion may result in conversions which are susceptible to unexpected failure when
property types or formats change. Conversion of properties with partially matched types can be
Copyright © 2011–2022. All rights reserved.