package o;

import java.util.Collections;
import java.util.HashSet;

/* compiled from: r8-map-id-3b7cc9102578c509342fa2f0fabed2bfc72239cd258d579fc679bfcbc198b048 */
/* renamed from: o.sj, reason: case insensitive filesystem */
/* loaded from: classes.dex */
public final class C2454sj {
    public String a = null;
    public final HashSet b;
    public final HashSet c;
    public int d;
    public int e;
    public InterfaceC0320Mj f;
    public final HashSet g;

    public C2454sj(Class cls, Class[] clsArr) {
        HashSet hashSet = new HashSet();
        this.b = hashSet;
        this.c = new HashSet();
        this.d = 0;
        this.e = 0;
        this.g = new HashSet();
        hashSet.add(JZ.a(cls));
        for (Class cls2 : clsArr) {
            AbstractC0752ap.v(cls2, "Null interface");
            this.b.add(JZ.a(cls2));
        }
    }

    public final void a(C2660ur c2660ur) {
        if (this.b.contains(c2660ur.a)) {
            throw new IllegalArgumentException("Components are not allowed to depend on interfaces they themselves provide.");
        }
        this.c.add(c2660ur);
    }

    public final C2549tj b() {
        if (this.f != null) {
            return new C2549tj(this.a, new HashSet(this.b), new HashSet(this.c), this.d, this.e, this.f, this.g);
        }
        throw new IllegalStateException("Missing required property: factory.");
    }

    public final void c(int i) {
        if (!(this.d == 0)) {
            throw new IllegalStateException("Instantiation type has already been set.");
        }
        this.d = i;
    }

    public C2454sj(JZ jz, JZ[] jzArr) {
        HashSet hashSet = new HashSet();
        this.b = hashSet;
        this.c = new HashSet();
        this.d = 0;
        this.e = 0;
        this.g = new HashSet();
        hashSet.add(jz);
        for (JZ jz2 : jzArr) {
            AbstractC0752ap.v(jz2, "Null interface");
        }
        Collections.addAll(this.b, jzArr);
    }
}
