package defpackage;

import java.io.Serializable;
import java.util.Iterator;
import java.util.NoSuchElementException;

/* JADX INFO: loaded from: classes2.dex */
@az3
@li2
abstract class k0<E> extends p0<E> implements Serializable {
    public transient long c;

    public abstract class a<T> implements Iterator<T> {
        public int a;
        public int b;
        public int c;

        public a() {
            k0.this.getClass();
            throw null;
        }

        public abstract Object a(int i);

        @Override // java.util.Iterator
        public final boolean hasNext() {
            throw null;
        }

        @Override // java.util.Iterator
        public final Object next() {
            if (!hasNext()) {
                throw new NoSuchElementException();
            }
            a(this.a);
            this.b = this.a;
            throw null;
        }

        @Override // java.util.Iterator
        public final void remove() {
            throw null;
        }
    }

    @Override // defpackage.p0, defpackage.dd6
    public final int add(int i, Object obj) {
        if (i == 0) {
            throw null;
        }
        if7.c("occurrences cannot be negative: %s", i, i > 0);
        throw null;
    }

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

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

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

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

    @Override // defpackage.dd6
    public final int count(Object obj) {
        throw null;
    }

    @Override // defpackage.p0
    public final Iterator d() {
        return new i0(this);
    }

    @Override // defpackage.p0
    public final Iterator e() {
        return new j0(this);
    }

    @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) {
        if (i == 0) {
            throw null;
        }
        if7.c("occurrences cannot be negative: %s", i, i > 0);
        throw null;
    }

    @Override // java.util.AbstractCollection, java.util.Collection
    public final int size() {
        return pr4.f(this.c);
    }
}
