package androidx.datastore.preferences.protobuf;

import java.util.AbstractList;
import java.util.Iterator;
import java.util.List;
import java.util.ListIterator;
import java.util.RandomAccess;

/* loaded from: classes.dex */
public class n1 extends AbstractList implements d0, RandomAccess {

    /* renamed from: p, reason: collision with root package name */
    private final d0 f4134p;

    /* loaded from: classes.dex */
    class a implements ListIterator {

        /* renamed from: p, reason: collision with root package name */
        ListIterator f4135p;

        /* renamed from: q, reason: collision with root package name */
        final /* synthetic */ int f4136q;

        a(int i10) {
            this.f4136q = i10;
            this.f4135p = n1.this.f4134p.listIterator(i10);
        }

        @Override // java.util.ListIterator
        /* renamed from: a, reason: merged with bridge method [inline-methods] */
        public void add(String str) {
            throw new UnsupportedOperationException();
        }

        @Override // java.util.ListIterator, java.util.Iterator
        /* renamed from: b, reason: merged with bridge method [inline-methods] */
        public String next() {
            return (String) this.f4135p.next();
        }

        @Override // java.util.ListIterator
        /* renamed from: c, reason: merged with bridge method [inline-methods] */
        public String previous() {
            return (String) this.f4135p.previous();
        }

        @Override // java.util.ListIterator
        /* renamed from: d, reason: merged with bridge method [inline-methods] */
        public void set(String str) {
            throw new UnsupportedOperationException();
        }

        @Override // java.util.ListIterator, java.util.Iterator
        public boolean hasNext() {
            return this.f4135p.hasNext();
        }

        @Override // java.util.ListIterator
        public boolean hasPrevious() {
            return this.f4135p.hasPrevious();
        }

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

        @Override // java.util.ListIterator
        public int previousIndex() {
            return this.f4135p.previousIndex();
        }

        @Override // java.util.ListIterator, java.util.Iterator
        public void remove() {
            throw new UnsupportedOperationException();
        }
    }

    /* loaded from: classes.dex */
    class b implements Iterator {

        /* renamed from: p, reason: collision with root package name */
        Iterator f4138p;

        b() {
            this.f4138p = n1.this.f4134p.iterator();
        }

        @Override // java.util.Iterator
        /* renamed from: a, reason: merged with bridge method [inline-methods] */
        public String next() {
            return (String) this.f4138p.next();
        }

        @Override // java.util.Iterator
        public boolean hasNext() {
            return this.f4138p.hasNext();
        }

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

    public n1(d0 d0Var) {
        this.f4134p = d0Var;
    }

    @Override // androidx.datastore.preferences.protobuf.d0
    public void K(g gVar) {
        throw new UnsupportedOperationException();
    }

    @Override // androidx.datastore.preferences.protobuf.d0
    public List b() {
        return this.f4134p.b();
    }

    @Override // androidx.datastore.preferences.protobuf.d0
    public d0 c() {
        return this;
    }

    @Override // androidx.datastore.preferences.protobuf.d0
    public Object f(int i10) {
        return this.f4134p.f(i10);
    }

    @Override // java.util.AbstractList, java.util.List
    /* renamed from: g, reason: merged with bridge method [inline-methods] */
    public String get(int i10) {
        return (String) this.f4134p.get(i10);
    }

    @Override // java.util.AbstractList, java.util.AbstractCollection, java.util.Collection, java.lang.Iterable, java.util.List
    public Iterator iterator() {
        return new b();
    }

    @Override // java.util.AbstractList, java.util.List
    public ListIterator listIterator(int i10) {
        return new a(i10);
    }

    @Override // java.util.AbstractCollection, java.util.Collection, java.util.List
    public int size() {
        return this.f4134p.size();
    }
}
