package o; import java.util.Iterator; /* loaded from: classes6.dex */ public final class gdC implements gdE> { final gdE d; /* JADX WARN: Multi-variable type inference failed */ public gdC(gdE gde) { C14957gcv.e(gde, ""); this.d = gde; } /* loaded from: classes6.dex */ public static final class Sts implements Iterator>, InterfaceC14932gcO { private int a; private final Iterator e; Sts(gdC gdc) { this.e = gdc.d.e(); } @Override // java.util.Iterator public final boolean hasNext() { return this.e.hasNext(); } @Override // java.util.Iterator public final /* synthetic */ Object next() { int i = this.a; this.a = i + 1; if (i >= 0) { return new C14852gaK(i, this.e.next()); } throw new ArithmeticException("Index overflow has happened."); } @Override // java.util.Iterator public final void remove() { throw new UnsupportedOperationException("Operation is not supported for read-only collection"); } } @Override // o.gdE public final Iterator> e() { return new Sts(this); } }