package c.b.a.v;

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

/* JADX INFO: loaded from: classes.dex */
public class a<T> {

    /* JADX INFO: renamed from: a, reason: collision with root package name */
    public final Class<? super T> f1381a;

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

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

    public a() {
        Type genericSuperclass = a.class.getGenericSuperclass();
        if (genericSuperclass instanceof Class) {
            throw new RuntimeException("Missing type parameter.");
        }
        Type typeA = c.b.a.u.a.a(((ParameterizedType) genericSuperclass).getActualTypeArguments()[0]);
        this.f1382b = typeA;
        this.f1381a = (Class<? super T>) c.b.a.u.a.e(typeA);
        this.f1383c = typeA.hashCode();
    }

    public final boolean equals(Object obj) {
        return (obj instanceof a) && c.b.a.u.a.c(this.f1382b, ((a) obj).f1382b);
    }

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

    public final String toString() {
        return c.b.a.u.a.i(this.f1382b);
    }

    public a(Type type) {
        Objects.requireNonNull(type);
        Type typeA = c.b.a.u.a.a(type);
        this.f1382b = typeA;
        this.f1381a = (Class<? super T>) c.b.a.u.a.e(typeA);
        this.f1383c = typeA.hashCode();
    }
}
