Interface TypeCoercerProxy

    • Method Detail

      • coerce

        <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).
        Type Parameters:
        S -
        T -
        Parameters:
        input - value to be coerced
        targetType - desired type of value
        Returns:
        the value, coerced
        Throws:
        RuntimeException - if the input can not be coerced