package com.chartboost.sdk.impl;

import java.util.ArrayList;
import java.util.Collection;
import java.util.Collections;
/* loaded from: classes2.dex */
public class vc {
    public static vc c = new vc();

    /* renamed from: a  reason: collision with root package name */
    public final ArrayList f1846a = new ArrayList();
    public final ArrayList b = new ArrayList();

    public static vc c() {
        return c;
    }

    public Collection a() {
        return Collections.unmodifiableCollection(this.b);
    }

    public Collection b() {
        return Collections.unmodifiableCollection(this.f1846a);
    }

    public boolean d() {
        return this.b.size() > 0;
    }

    public void a(bc bcVar) {
        this.f1846a.add(bcVar);
    }

    public void b(bc bcVar) {
        boolean d = d();
        this.f1846a.remove(bcVar);
        this.b.remove(bcVar);
        if (!d || d()) {
            return;
        }
        rd.c().e();
    }

    public void c(bc bcVar) {
        boolean d = d();
        this.b.add(bcVar);
        if (d) {
            return;
        }
        rd.c().d();
    }
}
