接口 JsonStrategy

  • 所有已知实现类:
    DefaultJsonStrategy

    public interface JsonStrategy
    作者:
    Fadada 2021/9/8 16:30:57
    • 方法详细资料

      • toBean

        <T> T toBean​(String json,
                     ParameterizedType parameterizedType)
              throws ApiException
        转成Java对象
        类型参数:
        T - 泛型
        参数:
        json - json串
        parameterizedType - 类型
        返回:
        泛型实例
        抛出:
        ApiException - 异常
      • toBean

        <T> T toBean​(String json,
                     Class<T> clzz)
              throws ApiException
        转成Java对象
        类型参数:
        T - 泛型
        参数:
        json - json串
        clzz - 类名
        返回:
        泛型实例
        抛出:
        ApiException - 异常
      • toList

        <T> List<T> toList​(String json,
                           Class<T> clzz)
                    throws ApiException
        转成列表
        类型参数:
        T - 泛型
        参数:
        json - json串
        clzz - 类名
        返回:
        泛型实例
        抛出:
        ApiException - 异常