public interface CallAdapter<T>
Call
into the type of T
.Modifier and Type | Interface and Description |
---|---|
static interface |
CallAdapter.Factory |
Modifier and Type | Method and Description |
---|---|
<R> T |
adapt(Call<R> call)
Returns an instance of the
T which adapts the execution of call . |
Type |
responseType()
Returns the value type that this adapter uses when converting the HTTP response body to a Java
object.
|
Type responseType()
Call<Repo>
is Repo
. This type
is used to prepare the call
passed to #adapt
.
Note that this is typically not the same type as the returnType
provided to
this call adapter's factory.
Copyright © 2015 Square, Inc.. All Rights Reserved.