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