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.7.0 - Copyright © 2003-2020 The Apache Software Foundation.