程序包 gateway.api

类 GsonResponseBodyConverter<T>

java.lang.Object
gateway.api.GsonResponseBodyConverter<T>
类型参数:
T -
所有已实现的接口:
retrofit2.Converter<okhttp3.ResponseBody,T>

final class GsonResponseBodyConverter<T> extends Object implements retrofit2.Converter<okhttp3.ResponseBody,T>
GSON应答体转换器
作者:
neeker
  • 嵌套类概要

    从接口继承的嵌套类/接口 retrofit2.Converter

    retrofit2.Converter.Factory
  • 字段概要

    字段
    修饰符和类型
    字段
    说明
    private final com.google.gson.TypeAdapter<T>
     
    private final com.google.gson.Gson
     
  • 构造器概要

    构造器
    构造器
    说明
    GsonResponseBodyConverter(com.google.gson.Gson gson, com.google.gson.TypeAdapter<T> adapter)
     
  • 方法概要

    修饰符和类型
    方法
    说明
    convert(okhttp3.ResponseBody value)
     

    从类继承的方法 java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 字段详细资料

    • gson

      private final com.google.gson.Gson gson
    • adapter

      private final com.google.gson.TypeAdapter<T> adapter
  • 构造器详细资料

    • GsonResponseBodyConverter

      GsonResponseBodyConverter(com.google.gson.Gson gson, com.google.gson.TypeAdapter<T> adapter)
  • 方法详细资料

    • convert

      public T convert(okhttp3.ResponseBody value) throws IOException
      指定者:
      convert 在接口中 retrofit2.Converter<okhttp3.ResponseBody,T>
      抛出:
      IOException