package C3;

import java.io.Serializable;
import java.util.Collection;
import java.util.Iterator;
import java.util.List;
import java.util.Map;
import java.util.NavigableMap;
import java.util.SortedMap;

/* JADX INFO: loaded from: classes.dex */
public final class T extends AbstractC0053o implements Serializable {

    /* JADX INFO: renamed from: t, reason: collision with root package name */
    public final transient Map f1219t;

    /* JADX INFO: renamed from: u, reason: collision with root package name */
    public transient int f1220u;

    /* JADX INFO: renamed from: v, reason: collision with root package name */
    public transient S f1221v;

    public T(Map map) {
        if (!map.isEmpty()) {
            throw new IllegalArgumentException();
        }
        this.f1219t = map;
    }

    @Override // C3.AbstractC0053o
    public final Map a() {
        Map map = this.f1290s;
        if (map != null) {
            return map;
        }
        Map map2 = this.f1219t;
        Map c0044f = map2 instanceof NavigableMap ? new C0044f(this, (NavigableMap) map2) : map2 instanceof SortedMap ? new C0047i(this, (SortedMap) map2) : new C0042d(this, map2);
        this.f1290s = c0044f;
        return c0044f;
    }

    public final void b() {
        Map map = this.f1219t;
        Iterator it = map.values().iterator();
        while (it.hasNext()) {
            ((Collection) it.next()).clear();
        }
        map.clear();
        this.f1220u = 0;
    }

    public final Collection c() {
        return (List) this.f1221v.get();
    }
}
