88 lines
2.6 KiB
Java
88 lines
2.6 KiB
Java
package d0.e0;
|
|
|
|
import d0.z.d.m;
|
|
import java.lang.reflect.Type;
|
|
import java.lang.reflect.WildcardType;
|
|
import java.util.Arrays;
|
|
import kotlin.jvm.internal.DefaultConstructorMarker;
|
|
/* compiled from: TypesJVM.kt */
|
|
public final class o implements WildcardType, Type {
|
|
public static final o i = new o(null, null);
|
|
public static final a j = new a(null);
|
|
public final Type k;
|
|
public final Type l;
|
|
|
|
/* compiled from: TypesJVM.kt */
|
|
public static final class a {
|
|
public a(DefaultConstructorMarker defaultConstructorMarker) {
|
|
}
|
|
|
|
public final o getSTAR() {
|
|
return o.access$getSTAR$cp();
|
|
}
|
|
}
|
|
|
|
public o(Type type, Type type2) {
|
|
this.k = type;
|
|
this.l = type2;
|
|
}
|
|
|
|
public static final /* synthetic */ o access$getSTAR$cp() {
|
|
return i;
|
|
}
|
|
|
|
@Override // java.lang.Object
|
|
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() {
|
|
Type type = this.l;
|
|
return type == null ? new Type[0] : new Type[]{type};
|
|
}
|
|
|
|
@Override // java.lang.reflect.Type
|
|
public String getTypeName() {
|
|
if (this.l != null) {
|
|
StringBuilder K = c.d.b.a.a.K("? super ");
|
|
K.append(n.access$typeToString(this.l));
|
|
return K.toString();
|
|
}
|
|
Type type = this.k;
|
|
if (type == null || !(!m.areEqual(type, Object.class))) {
|
|
return "?";
|
|
}
|
|
StringBuilder K2 = c.d.b.a.a.K("? extends ");
|
|
K2.append(n.access$typeToString(this.k));
|
|
return K2.toString();
|
|
}
|
|
|
|
/* JADX DEBUG: Can't convert new array creation: APUT found in different block: 0x000b: APUT (r0v1 java.lang.reflect.Type[]), (0 ??[int, short, byte, char]), (r1v1 java.lang.reflect.Type) */
|
|
@Override // java.lang.reflect.WildcardType
|
|
public Type[] getUpperBounds() {
|
|
Type[] typeArr = new Type[1];
|
|
Type type = this.k;
|
|
if (type == null) {
|
|
type = Object.class;
|
|
}
|
|
typeArr[0] = type;
|
|
return typeArr;
|
|
}
|
|
|
|
@Override // java.lang.Object
|
|
public int hashCode() {
|
|
return Arrays.hashCode(getUpperBounds()) ^ Arrays.hashCode(getLowerBounds());
|
|
}
|
|
|
|
@Override // java.lang.Object
|
|
public String toString() {
|
|
return getTypeName();
|
|
}
|
|
}
|