package re; import bf.x; import java.lang.reflect.GenericArrayType; import java.lang.reflect.Type; import java.lang.reflect.WildcardType; import kf.c; import kotlin.jvm.internal.k; import kotlin.jvm.internal.s; /* compiled from: ReflectJavaType.kt */ /* loaded from: classes5.dex */ public abstract class z implements x { /* renamed from: a reason: collision with root package name */ public static final a f21946a = new a(null); /* compiled from: ReflectJavaType.kt */ /* loaded from: classes5.dex */ public static final class a { private a() { } public /* synthetic */ a(k kVar) { this(); } public final z a(Type type) { s.e(type, "type"); boolean z10 = type instanceof Class; if (z10) { Class cls = (Class) type; if (cls.isPrimitive()) { return new x(cls); } } return ((type instanceof GenericArrayType) || (z10 && ((Class) type).isArray())) ? new k(type) : type instanceof WildcardType ? new c0((WildcardType) type) : new n(type); } } protected abstract Type Q(); @Override // bf.d public bf.a b(c cVar) { return x.a.a(this, cVar); } public boolean equals(Object obj) { return (obj instanceof z) && s.a(Q(), ((z) obj).Q()); } public int hashCode() { return Q().hashCode(); } public String toString() { return getClass().getName() + ": " + Q(); } }