public final class TypeCoercerProxyImpl extends Object implements TypeCoercerProxy
TypeCoercer| Constructor and Description |
|---|
TypeCoercerProxyImpl(ObjectLocator locator) |
| 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). |
public TypeCoercerProxyImpl(ObjectLocator locator)
public <S,T> T coerce(S input, Class<T> targetType)
TypeCoercerProxyTypeCoercer.coerce(Object, Class).coerce in interface TypeCoercerProxyinput - value to be coercedtargetType - desired type of value5.6.4 - Copyright © 2003-2021 The Apache Software Foundation.