39 lines
1.3 KiB
Java
39 lines
1.3 KiB
Java
package retrofit2;
|
|
|
|
import java.io.IOException;
|
|
import java.lang.annotation.Annotation;
|
|
import java.lang.reflect.ParameterizedType;
|
|
import java.lang.reflect.Type;
|
|
import okhttp3.RequestBody;
|
|
import okhttp3.ResponseBody;
|
|
|
|
/* loaded from: classes.dex */
|
|
public interface Converter<F, T> {
|
|
T convert(F f) throws IOException;
|
|
|
|
/* loaded from: classes.dex */
|
|
public static abstract class Factory {
|
|
public Converter<?, RequestBody> requestBodyConverter(Type type, Annotation[] annotationArr, Annotation[] annotationArr2, Retrofit retrofit) {
|
|
return null;
|
|
}
|
|
|
|
public Converter<ResponseBody, ?> responseBodyConverter(Type type, Annotation[] annotationArr, Retrofit retrofit) {
|
|
return null;
|
|
}
|
|
|
|
public Converter<?, String> stringConverter(Type type, Annotation[] annotationArr, Retrofit retrofit) {
|
|
return null;
|
|
}
|
|
|
|
/* JADX INFO: Access modifiers changed from: protected */
|
|
public static Type getParameterUpperBound(int i, ParameterizedType parameterizedType) {
|
|
return Utils.getParameterUpperBound(i, parameterizedType);
|
|
}
|
|
|
|
/* JADX INFO: Access modifiers changed from: protected */
|
|
public static Class<?> getRawType(Type type) {
|
|
return Utils.getRawType(type);
|
|
}
|
|
}
|
|
}
|