package d4;

import com.google.android.gms.internal.measurement.C1;
import d5.AbstractC0844a;

/* JADX INFO: loaded from: classes.dex */
public final class h {

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

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

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

    public h(int i, int i5, Class cls) {
        this(p.a(cls), i, i5);
    }

    public static h a(p pVar) {
        return new h(pVar, 1, 0);
    }

    public static h b(Class cls) {
        return new h(1, 0, cls);
    }

    public final boolean equals(Object obj) {
        if (!(obj instanceof h)) {
            return false;
        }
        h hVar = (h) obj;
        return this.f12266a.equals(hVar.f12266a) && this.f12267b == hVar.f12267b && this.f12268c == hVar.f12268c;
    }

    public final int hashCode() {
        return ((((this.f12266a.hashCode() ^ 1000003) * 1000003) ^ this.f12267b) * 1000003) ^ this.f12268c;
    }

    public final String toString() {
        String str;
        StringBuilder sb = new StringBuilder("Dependency{anInterface=");
        sb.append(this.f12266a);
        sb.append(", type=");
        int i = this.f12267b;
        sb.append(i == 1 ? "required" : i == 0 ? "optional" : "set");
        sb.append(", injection=");
        int i5 = this.f12268c;
        if (i5 == 0) {
            str = "direct";
        } else if (i5 == 1) {
            str = "provider";
        } else {
            if (i5 != 2) {
                throw new AssertionError(AbstractC0844a.j("Unsupported injection: ", i5));
            }
            str = "deferred";
        }
        return I1.a.r(sb, str, "}");
    }

    public h(p pVar, int i, int i5) {
        C1.e(pVar, "Null dependency anInterface.");
        this.f12266a = pVar;
        this.f12267b = i;
        this.f12268c = i5;
    }
}
