package u5; import java.util.ArrayList; import java.util.Collection; import java.util.Collections; import t5.i; /* loaded from: classes2.dex */ public class a { /* renamed from: c, reason: collision with root package name */ private static a f14672c = new a(); /* renamed from: a, reason: collision with root package name */ private final ArrayList f14673a = new ArrayList(); /* renamed from: b, reason: collision with root package name */ private final ArrayList f14674b = new ArrayList(); private a() { } public static a a() { return f14672c; } public void b(i iVar) { this.f14673a.add(iVar); } public Collection c() { return Collections.unmodifiableCollection(this.f14673a); } public void d(i iVar) { boolean g10 = g(); this.f14674b.add(iVar); if (g10) { return; } f.c().e(); } public Collection e() { return Collections.unmodifiableCollection(this.f14674b); } public void f(i iVar) { boolean g10 = g(); this.f14673a.remove(iVar); this.f14674b.remove(iVar); if (!g10 || g()) { return; } f.c().f(); } public boolean g() { return this.f14674b.size() > 0; } }