package defpackage;

import defpackage.od6;
import java.io.Serializable;
import java.util.Comparator;
import java.util.Iterator;

/* JADX INFO: loaded from: classes2.dex */
@az3
@li2
public final class kw9<E> extends z1<E> implements Serializable {
    public static final /* synthetic */ int f = 0;
    public final transient vs3 e;

    public static /* synthetic */ class a {
        public static final /* synthetic */ int[] a;

        static {
            int[] iArr = new int[me0.values().length];
            a = iArr;
            try {
                iArr[0] = 1;
            } catch (NoSuchFieldError unused) {
            }
            try {
                a[1] = 2;
            } catch (NoSuchFieldError unused2) {
            }
        }
    }

    /* JADX WARN: Failed to restore enum class, 'enum' modifier and super class removed */
    /* JADX WARN: Unknown enum class pattern. Please report as an issue! */
    public static abstract class b {
        public static final /* synthetic */ b[] a = {new a(), new C0168b()};

        /* JADX INFO: Fake field, exist only in values array */
        b EF2;

        public enum a extends b {
            public a() {
                super("SIZE", 0);
            }
        }

        /* JADX INFO: renamed from: kw9$b$b, reason: collision with other inner class name */
        public enum C0168b extends b {
            public C0168b() {
                super("DISTINCT", 1);
            }
        }

        public static b valueOf(String str) {
            return (b) Enum.valueOf(b.class, str);
        }

        public static b[] values() {
            return (b[]) a.clone();
        }
    }

    public static final class c<E> {
        public final String toString() {
            return new od6.f(null, 0).toString();
        }
    }

    public static final class d<T> {
    }

    public kw9(vs3 vs3Var) {
        super(vs3Var.a);
        this.e = vs3Var;
    }

    @Override // defpackage.p0, defpackage.dd6
    public final int add(int i, Object obj) {
        k41.b(i, "occurrences");
        if (i == 0) {
            try {
                throw null;
            } catch (NullPointerException unused) {
                return 0;
            }
        }
        if7.e(this.e.a(obj));
        throw null;
    }

    @Override // defpackage.z1, defpackage.lx8
    public final lx8 af(Object obj, me0 me0Var, Object obj2, me0 me0Var2) {
        return ((kw9) w(obj, me0Var)).at(obj2, me0Var2);
    }

    @Override // defpackage.p0, defpackage.dd6
    public final boolean ak(int i, Object obj) {
        k41.b(0, "newCount");
        k41.b(i, "oldCount");
        if7.e(this.e.a(obj));
        throw null;
    }

    @Override // defpackage.lx8
    public final lx8 at(Object obj, me0 me0Var) {
        return new kw9(this.e.b(new vs3(this.c, false, null, me0.a, true, obj, me0Var)));
    }

    @Override // defpackage.p0, defpackage.dd6
    public final int bc(Object obj) {
        k41.b(0, "count");
        if (this.e.a(obj)) {
            throw null;
        }
        return 0;
    }

    @Override // defpackage.p0
    public final int c() {
        throw null;
    }

    @Override // java.util.AbstractCollection, java.util.Collection
    public final void clear() {
        vs3 vs3Var = this.e;
        if (!vs3Var.b && !vs3Var.e) {
            throw null;
        }
        new iw9(this);
        throw null;
    }

    @Override // defpackage.z1, defpackage.lx8, defpackage.hx8
    public final Comparator comparator() {
        return this.c;
    }

    @Override // defpackage.dd6
    public final int count(Object obj) {
        try {
            throw null;
        } catch (NullPointerException unused) {
            return 0;
        }
    }

    @Override // defpackage.p0
    public final Iterator d() {
        new iw9(this);
        throw null;
    }

    @Override // defpackage.p0
    public final Iterator e() {
        new iw9(this);
        throw null;
    }

    @Override // defpackage.z1
    public final Iterator f() {
        new jw9(this);
        throw null;
    }

    @Override // java.util.AbstractCollection, java.util.Collection, java.lang.Iterable
    public final Iterator iterator() {
        return od6.b(this);
    }

    @Override // defpackage.p0, defpackage.dd6
    public final int n(int i, Object obj) {
        k41.b(i, "occurrences");
        if (i != 0) {
            throw null;
        }
        try {
            throw null;
        } catch (NullPointerException unused) {
            return 0;
        }
    }

    @Override // java.util.AbstractCollection, java.util.Collection
    public final int size() {
        throw null;
    }

    @Override // defpackage.lx8
    public final lx8 w(Object obj, me0 me0Var) {
        return new kw9(this.e.b(new vs3(this.c, true, obj, me0Var, false, null, me0.a)));
    }
}
