package f5; import b5.b; import java.lang.reflect.ParameterizedType; import java.lang.reflect.Type; /* loaded from: classes2.dex */ public class a { /* renamed from: a, reason: collision with root package name */ final Class f9559a; /* renamed from: b, reason: collision with root package name */ final Type f9560b; /* renamed from: c, reason: collision with root package name */ final int f9561c; protected a() { Type d10 = d(getClass()); this.f9560b = d10; this.f9559a = b.k(d10); this.f9561c = d10.hashCode(); } public static a a(Class cls) { return new a(cls); } public static a b(Type type) { return new a(type); } static Type d(Class cls) { Type genericSuperclass = cls.getGenericSuperclass(); if (genericSuperclass instanceof Class) { throw new RuntimeException("Missing type parameter."); } return b.b(((ParameterizedType) genericSuperclass).getActualTypeArguments()[0]); } public final Class c() { return this.f9559a; } public final Type e() { return this.f9560b; } public final boolean equals(Object obj) { return (obj instanceof a) && b.f(this.f9560b, ((a) obj).f9560b); } public final int hashCode() { return this.f9561c; } public final String toString() { return b.u(this.f9560b); } a(Type type) { Type b10 = b.b((Type) b5.a.b(type)); this.f9560b = b10; this.f9559a = b.k(b10); this.f9561c = b10.hashCode(); } }