package androidx.leanback.widget;

import java.util.ArrayList;
import java.util.Collection;

/* JADX INFO: renamed from: androidx.leanback.widget.b, reason: case insensitive filesystem */
/* JADX INFO: loaded from: classes.dex */
public final class C0455b extends N {

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

    /* JADX INFO: renamed from: d, reason: collision with root package name */
    public final ArrayList f8627d;

    /* JADX INFO: renamed from: e, reason: collision with root package name */
    public P.g f8628e;

    public C0455b(H5.r rVar) {
        super(rVar);
        this.f8626c = new ArrayList();
        this.f8627d = new ArrayList();
    }

    @Override // androidx.leanback.widget.N
    public final Object a(int i) {
        return this.f8626c.get(i);
    }

    @Override // androidx.leanback.widget.N
    public final int d() {
        return this.f8626c.size();
    }

    public final void e(int i, Collection collection) {
        int size = collection.size();
        if (size == 0) {
            return;
        }
        this.f8626c.addAll(i, collection);
        this.f8479a.f(i, size);
    }

    public final void f() {
        ArrayList arrayList = this.f8626c;
        int size = arrayList.size();
        if (size == 0) {
            return;
        }
        arrayList.clear();
        this.f8479a.g(0, size);
    }

    public C0455b(Y y8) {
        super(y8);
        this.f8626c = new ArrayList();
        this.f8627d = new ArrayList();
    }
}
