package o;

import java.io.NotSerializableException;
import java.io.Serializable;
import java.util.Collection;
import java.util.Iterator;

/* compiled from: r8-map-id-3b7cc9102578c509342fa2f0fabed2bfc72239cd258d579fc679bfcbc198b048 */
/* renamed from: o.q70, reason: case insensitive filesystem */
/* loaded from: classes.dex */
public final class C2216q70 extends W implements Serializable {
    public static final C2216q70 m;
    public final C2803wN l;

    static {
        C2803wN c2803wN = C2803wN.y;
        m = new C2216q70(C2803wN.y);
    }

    public C2216q70(C2803wN c2803wN) {
        this.l = c2803wN;
    }

    private final Object writeReplace() throws NotSerializableException {
        if (this.l.x) {
            return new P60(this, 1);
        }
        throw new NotSerializableException("The set cannot be serialized while it is being built.");
    }

    @Override // o.W
    public final int a() {
        return this.l.t;
    }

    @Override // java.util.AbstractCollection, java.util.Collection, java.util.Set
    public final boolean add(Object obj) {
        return this.l.a(obj) >= 0;
    }

    @Override // java.util.AbstractCollection, java.util.Collection, java.util.Set
    public final boolean addAll(Collection collection) {
        this.l.c();
        return super.addAll(collection);
    }

    @Override // java.util.AbstractCollection, java.util.Collection, java.util.Set
    public final void clear() {
        this.l.clear();
    }

    @Override // java.util.AbstractCollection, java.util.Collection, java.util.Set
    public final boolean contains(Object obj) {
        return this.l.containsKey(obj);
    }

    @Override // java.util.AbstractCollection, java.util.Collection, java.util.Set
    public final boolean isEmpty() {
        return this.l.isEmpty();
    }

    @Override // java.util.AbstractCollection, java.util.Collection, java.lang.Iterable, java.util.Set
    public final Iterator iterator() {
        C2803wN c2803wN = this.l;
        c2803wN.getClass();
        return new C2518tN(c2803wN, 1);
    }

    @Override // java.util.AbstractCollection, java.util.Collection, java.util.Set
    public final boolean remove(Object obj) {
        C2803wN c2803wN = this.l;
        c2803wN.c();
        int iF = c2803wN.f(obj);
        if (iF < 0) {
            return false;
        }
        c2803wN.i(iF);
        return true;
    }

    @Override // java.util.AbstractSet, java.util.AbstractCollection, java.util.Collection, java.util.Set
    public final boolean removeAll(Collection collection) {
        this.l.c();
        return super.removeAll(collection);
    }

    @Override // java.util.AbstractCollection, java.util.Collection, java.util.Set
    public final boolean retainAll(Collection collection) {
        this.l.c();
        return super.retainAll(collection);
    }

    public C2216q70() {
        this(new C2803wN());
    }
}
