package p3;

import java.lang.reflect.ParameterizedType;
import java.lang.reflect.Type;
import java.util.Objects;
import k3.d;

/* JADX INFO: renamed from: p3.a, reason: case insensitive filesystem */
/* JADX INFO: loaded from: classes.dex */
public class C0952a {

    /* JADX INFO: renamed from: a, reason: collision with root package name */
    public final Class f9529a;

    /* JADX INFO: renamed from: b, reason: collision with root package name */
    public final Type f9530b;

    /* JADX INFO: renamed from: c, reason: collision with root package name */
    public final int f9531c;

    public C0952a() {
        Type genericSuperclass = getClass().getGenericSuperclass();
        if (genericSuperclass instanceof ParameterizedType) {
            ParameterizedType parameterizedType = (ParameterizedType) genericSuperclass;
            if (parameterizedType.getRawType() == C0952a.class) {
                Type typeA = d.a(parameterizedType.getActualTypeArguments()[0]);
                this.f9530b = typeA;
                this.f9529a = d.g(typeA);
                this.f9531c = typeA.hashCode();
                return;
            }
        } else if (genericSuperclass == C0952a.class) {
            throw new IllegalStateException("TypeToken must be created with a type argument: new TypeToken<...>() {}; When using code shrinkers (ProGuard, R8, ...) make sure that generic signatures are preserved.");
        }
        throw new IllegalStateException("Must only create direct subclasses of TypeToken");
    }

    public final boolean equals(Object obj) {
        if (obj instanceof C0952a) {
            return d.d(this.f9530b, ((C0952a) obj).f9530b);
        }
        return false;
    }

    public final int hashCode() {
        return this.f9531c;
    }

    public final String toString() {
        return d.j(this.f9530b);
    }

    public C0952a(Type type) {
        Objects.requireNonNull(type);
        Type typeA = d.a(type);
        this.f9530b = typeA;
        this.f9529a = d.g(typeA);
        this.f9531c = typeA.hashCode();
    }
}
