public final class GuavaOptionalConverterFactory
extends retrofit2.Converter.Factory
Optional<T> which delegates to another
converter to deserialize T and then wraps it into Optional.| Modifier and Type | Method and Description |
|---|---|
static GuavaOptionalConverterFactory |
create() |
retrofit2.Converter<okhttp3.ResponseBody,?> |
responseBodyConverter(java.lang.reflect.Type type,
java.lang.annotation.Annotation[] annotations,
retrofit2.Retrofit retrofit) |
public static GuavaOptionalConverterFactory create()
@Nullable
public retrofit2.Converter<okhttp3.ResponseBody,?> responseBodyConverter(java.lang.reflect.Type type,
java.lang.annotation.Annotation[] annotations,
retrofit2.Retrofit retrofit)
responseBodyConverter in class retrofit2.Converter.Factory