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
-
Nested Class Summary
Nested classes/interfaces inherited from interface retrofit2.CallAdapter
retrofit2.CallAdapter.Factory
-
Constructor Summary
Constructors
-
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
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>