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)
TypeCoercerProxy
TypeCoercer.coerce(Object, Class)
.coerce
in interface TypeCoercerProxy
input
- value to be coercedtargetType
- desired type of value${project.version} - Copyright © 2003-2015 The Apache Software Foundation.