package o; import java.util.Iterator; import java.util.NoSuchElementException; /* renamed from: o.gaf, reason: case insensitive filesystem */ /* loaded from: classes6.dex */ public abstract class AbstractC14865gaf implements Iterator, InterfaceC14932gcO { private T b; private EnumC14899gba e = EnumC14899gba.NotReady; protected abstract void a(); @Override // java.util.Iterator public boolean hasNext() { if (this.e == EnumC14899gba.Failed) { throw new IllegalArgumentException("Failed requirement.".toString()); } int i = RVV.e[this.e.ordinal()]; if (i == 1) { return false; } if (i != 2) { this.e = EnumC14899gba.Failed; a(); if (this.e != EnumC14899gba.Ready) { return false; } } return true; } @Override // java.util.Iterator public T next() { if (!hasNext()) { throw new NoSuchElementException(); } this.e = EnumC14899gba.NotReady; return this.b; } /* JADX INFO: Access modifiers changed from: protected */ public final void e(T t) { this.b = t; this.e = EnumC14899gba.Ready; } /* JADX INFO: Access modifiers changed from: protected */ public final void b() { this.e = EnumC14899gba.Done; } /* renamed from: o.gaf$RVV */ /* loaded from: classes6.dex */ public final /* synthetic */ class RVV { public static final int[] e; static { int[] iArr = new int[EnumC14899gba.values().length]; try { iArr[EnumC14899gba.Done.ordinal()] = 1; } catch (NoSuchFieldError unused) { } try { iArr[EnumC14899gba.Ready.ordinal()] = 2; } catch (NoSuchFieldError unused2) { } e = iArr; } } @Override // java.util.Iterator public void remove() { throw new UnsupportedOperationException("Operation is not supported for read-only collection"); } }