package N2;

import p0.AbstractC0928a;

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

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

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

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

    public k(int i, int i5, Class cls) {
        this(s.a(cls), i, i5);
    }

    public static k a(Class cls) {
        return new k(1, 0, cls);
    }

    public final boolean equals(Object obj) {
        if (!(obj instanceof k)) {
            return false;
        }
        k kVar = (k) obj;
        return this.f2212a.equals(kVar.f2212a) && this.f2213b == kVar.f2213b && this.f2214c == kVar.f2214c;
    }

    public final int hashCode() {
        return ((((this.f2212a.hashCode() ^ 1000003) * 1000003) ^ this.f2213b) * 1000003) ^ this.f2214c;
    }

    public final String toString() {
        String str;
        StringBuilder sb = new StringBuilder("Dependency{anInterface=");
        sb.append(this.f2212a);
        sb.append(", type=");
        int i = this.f2213b;
        sb.append(i == 1 ? "required" : i == 0 ? "optional" : "set");
        sb.append(", injection=");
        int i5 = this.f2214c;
        if (i5 == 0) {
            str = "direct";
        } else if (i5 == 1) {
            str = "provider";
        } else {
            if (i5 != 2) {
                throw new AssertionError(AbstractC0928a.i(i5, "Unsupported injection: "));
            }
            str = "deferred";
        }
        return s0.c.e(sb, str, "}");
    }

    public k(s sVar, int i, int i5) {
        this.f2212a = sVar;
        this.f2213b = i;
        this.f2214c = i5;
    }
}
