package com.google.android.gms.internal.atv_ads_framework;

import java.util.ListIterator;
import java.util.NoSuchElementException;

/* JADX INFO: loaded from: classes2.dex */
public abstract class j extends v4.b implements ListIterator {

    /* JADX INFO: renamed from: b, reason: collision with root package name */
    public final int f19937b;

    /* JADX INFO: renamed from: c, reason: collision with root package name */
    public int f19938c;

    public j(int i10, int i11) {
        super(2);
        hb.a.R0(i11, i10);
        this.f19937b = i10;
        this.f19938c = i11;
    }

    @Override // java.util.ListIterator
    public final /* bridge */ /* synthetic */ void add(Object obj) {
        c(obj);
        throw null;
    }

    public final void c(Object obj) {
        throw new UnsupportedOperationException();
    }

    public final void d(Object obj) {
        throw new UnsupportedOperationException();
    }

    public abstract Object e(int i10);

    @Override // java.util.Iterator, java.util.ListIterator
    public final boolean hasNext() {
        return this.f19938c < this.f19937b;
    }

    @Override // java.util.ListIterator
    public final boolean hasPrevious() {
        return this.f19938c > 0;
    }

    @Override // v4.b, java.util.Iterator, java.util.ListIterator
    public final Object next() {
        if (!hasNext()) {
            throw new NoSuchElementException();
        }
        int i10 = this.f19938c;
        this.f19938c = i10 + 1;
        return e(i10);
    }

    @Override // java.util.ListIterator
    public final int nextIndex() {
        return this.f19938c;
    }

    @Override // java.util.ListIterator
    public final Object previous() {
        if (!hasPrevious()) {
            throw new NoSuchElementException();
        }
        int i10 = this.f19938c - 1;
        this.f19938c = i10;
        return e(i10);
    }

    @Override // java.util.ListIterator
    public final int previousIndex() {
        return this.f19938c - 1;
    }

    @Override // java.util.ListIterator
    public final /* bridge */ /* synthetic */ void set(Object obj) {
        d(obj);
        throw null;
    }
}
