discord-jadx/app/src/main/java/d0/e0/o.java

89 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 L = c.d.b.a.a.L("? super ");
L.append(n.access$typeToString(this.l));
return L.toString();
}
Type type = this.k;
if (type == null || !(!m.areEqual(type, Object.class))) {
return "?";
}
StringBuilder L2 = c.d.b.a.a.L("? extends ");
L2.append(n.access$typeToString(this.k));
return L2.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();
}
}