2021-11-02 06:38:17 +00:00
|
|
|
package d0.e0;
|
2021-08-03 07:33:18 +00:00
|
|
|
|
2021-11-02 06:38:17 +00:00
|
|
|
import d0.z.d.m;
|
2021-08-03 07:33:18 +00:00
|
|
|
import java.lang.reflect.Type;
|
|
|
|
import java.lang.reflect.WildcardType;
|
|
|
|
import java.util.Arrays;
|
|
|
|
import kotlin.jvm.internal.DefaultConstructorMarker;
|
|
|
|
/* compiled from: TypesJVM.kt */
|
2022-03-07 09:34:54 +00:00
|
|
|
/* loaded from: classes3.dex */
|
2021-08-03 07:33:18 +00:00
|
|
|
public final class o implements WildcardType, Type {
|
|
|
|
public final Type l;
|
2021-12-02 18:53:44 +00:00
|
|
|
public final Type m;
|
2022-03-07 09:34:54 +00:00
|
|
|
public static final a k = new a(null);
|
|
|
|
public static final o j = new o(null, null);
|
2021-08-03 07:33:18 +00:00
|
|
|
|
|
|
|
/* compiled from: TypesJVM.kt */
|
2022-03-07 09:34:54 +00:00
|
|
|
/* loaded from: classes3.dex */
|
2021-08-03 07:33:18 +00:00
|
|
|
public static final class a {
|
|
|
|
public a(DefaultConstructorMarker defaultConstructorMarker) {
|
|
|
|
}
|
|
|
|
|
|
|
|
public final o getSTAR() {
|
|
|
|
return o.access$getSTAR$cp();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
public o(Type type, Type type2) {
|
2021-12-02 18:53:44 +00:00
|
|
|
this.l = type;
|
|
|
|
this.m = type2;
|
2021-08-03 07:33:18 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
public static final /* synthetic */ o access$getSTAR$cp() {
|
2021-12-02 18:53:44 +00:00
|
|
|
return j;
|
2021-08-03 07:33:18 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
public boolean equals(Object obj) {
|
|
|
|
if (obj instanceof WildcardType) {
|
|
|
|
WildcardType wildcardType = (WildcardType) obj;
|
|
|
|
if (Arrays.equals(getUpperBounds(), wildcardType.getUpperBounds()) && Arrays.equals(getLowerBounds(), wildcardType.getLowerBounds())) {
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override // java.lang.reflect.WildcardType
|
|
|
|
public Type[] getLowerBounds() {
|
2021-12-02 18:53:44 +00:00
|
|
|
Type type = this.m;
|
2021-08-03 07:33:18 +00:00
|
|
|
return type == null ? new Type[0] : new Type[]{type};
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override // java.lang.reflect.Type
|
|
|
|
public String getTypeName() {
|
2021-12-02 18:53:44 +00:00
|
|
|
if (this.m != null) {
|
2022-03-21 18:52:30 +00:00
|
|
|
StringBuilder R = b.d.b.a.a.R("? super ");
|
|
|
|
R.append(n.access$typeToString(this.m));
|
|
|
|
return R.toString();
|
2021-08-03 07:33:18 +00:00
|
|
|
}
|
2021-12-02 18:53:44 +00:00
|
|
|
Type type = this.l;
|
2021-08-03 07:33:18 +00:00
|
|
|
if (type == null || !(!m.areEqual(type, Object.class))) {
|
|
|
|
return "?";
|
|
|
|
}
|
2022-03-21 18:52:30 +00:00
|
|
|
StringBuilder R2 = b.d.b.a.a.R("? extends ");
|
|
|
|
R2.append(n.access$typeToString(this.l));
|
|
|
|
return R2.toString();
|
2021-08-03 07:33:18 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
@Override // java.lang.reflect.WildcardType
|
|
|
|
public Type[] getUpperBounds() {
|
|
|
|
Type[] typeArr = new Type[1];
|
2021-12-02 18:53:44 +00:00
|
|
|
Type type = this.l;
|
2021-08-03 07:33:18 +00:00
|
|
|
if (type == null) {
|
|
|
|
type = Object.class;
|
|
|
|
}
|
|
|
|
typeArr[0] = type;
|
|
|
|
return typeArr;
|
|
|
|
}
|
|
|
|
|
|
|
|
public int hashCode() {
|
|
|
|
return Arrays.hashCode(getUpperBounds()) ^ Arrays.hashCode(getLowerBounds());
|
|
|
|
}
|
|
|
|
|
|
|
|
public String toString() {
|
|
|
|
return getTypeName();
|
|
|
|
}
|
|
|
|
}
|