public interface TypeCoercerProxy
TypeCoercer used to defer the instantiation of the actual TypeCoercer
service until necessary.| Modifier and Type | Method and Description |
|---|---|
<S,T> T |
coerce(S input,
Class<T> targetType)
Returns input cast to targetType if input is an instance of target type, otherwise delegates
to
TypeCoercer.coerce(Object, Class). |
<S,T> T coerce(S input, Class<T> targetType)
TypeCoercer.coerce(Object, Class).S - T - input - value to be coercedtargetType - desired type of valueRuntimeException - if the input can not be coerced5.6.4 - Copyright © 2003-2021 The Apache Software Foundation.