Class GenericCallAdapter

java.lang.Object
dev.voidframework.restclient.retrofit.calladapter.GenericCallAdapter
All Implemented Interfaces:
retrofit2.CallAdapter<Map<?,?>,Object>

public final class GenericCallAdapter extends Object implements retrofit2.CallAdapter<Map<?,?>,Object>
Adapts a Call with response of type Object into a Object.
Since:
1.9.0
  • Constructor Details

    • GenericCallAdapter

      public GenericCallAdapter(Type outputType)
      Build a new instance.
      Parameters:
      outputType - The output type
      Since:
      1.9.0
  • Method Details

    • responseType

      public Type responseType()
      Specified by:
      responseType in interface retrofit2.CallAdapter<Map<?,?>,Object>
    • adapt

      public Object adapt(retrofit2.Call<Map<?,?>> call)
      Specified by:
      adapt in interface retrofit2.CallAdapter<Map<?,?>,Object>