|Constructor and Description|
|Modifier and Type||Method and Description|
Determines whether the converter matches and supports conversion from
public static <S,D> ConditionalConverter<S,D> wrap(Class<S> sourceType, Class<D> destinationType, Converter<S,D> converter)
public 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
sourceType- to match
destinationType- to match
Copyright © 2011–2022. All rights reserved.