package B6;

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

/* JADX INFO: loaded from: classes.dex */
public final class c extends b implements ListIterator {

    /* JADX INFO: renamed from: t, reason: collision with root package name */
    public final /* synthetic */ e f1019t;

    /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
    public c(e eVar, int i) {
        super(0, eVar);
        this.f1019t = eVar;
        int iA = eVar.a();
        if (i < 0 || i > iA) {
            throw new IndexOutOfBoundsException(I1.a.o("index: ", i, iA, ", size: "));
        }
        this.f1017r = i;
    }

    @Override // java.util.ListIterator
    public final void add(Object obj) {
        throw new UnsupportedOperationException("Operation is not supported for read-only collection");
    }

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

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

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

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

    @Override // java.util.ListIterator
    public final void set(Object obj) {
        throw new UnsupportedOperationException("Operation is not supported for read-only collection");
    }
}
