package androidx.leanback.widget;

/* JADX INFO: loaded from: classes.dex */
public abstract class N {

    /* JADX INFO: renamed from: a, reason: collision with root package name */
    public final N1.U f8479a = new N1.U(1);

    /* JADX INFO: renamed from: b, reason: collision with root package name */
    public Z f8480b;

    public N(Z z8) {
        c(z8);
    }

    public abstract Object a(int i);

    public final void b() {
        this.f8479a.b();
    }

    public final void c(Z z8) {
        if (z8 == null) {
            throw new IllegalArgumentException("Presenter selector must not be null");
        }
        boolean z9 = this.f8480b != null;
        this.f8480b = z8;
        if (z9) {
            b();
        }
    }

    public abstract int d();

    public N(Y y8) {
        c(new C0(y8));
    }
}
