package o;

import java.util.Iterator;
import java.util.Map;

/* compiled from: r8-map-id-3b7cc9102578c509342fa2f0fabed2bfc72239cd258d579fc679bfcbc198b048 */
/* loaded from: classes.dex */
public final class FW implements Iterator, InterfaceC2989yJ {
    public final /* synthetic */ int l = 1;
    public final Iterator m;

    public FW(C3002yW c3002yW) {
        AbstractC0833bh0[] abstractC0833bh0Arr = new AbstractC0833bh0[8];
        for (int i = 0; i < 8; i++) {
            abstractC0833bh0Arr[i] = new C1024dh0(this);
        }
        this.m = new DW(c3002yW, abstractC0833bh0Arr);
    }

    @Override // java.util.Iterator
    public final boolean hasNext() {
        switch (this.l) {
            case 0:
                return ((DW) this.m).n;
            default:
                return this.m.hasNext();
        }
    }

    @Override // java.util.Iterator
    public final Object next() {
        switch (this.l) {
            case 0:
                return (Map.Entry) ((DW) this.m).next();
            default:
                return (AbstractC0741aj0) this.m.next();
        }
    }

    @Override // java.util.Iterator
    public final void remove() {
        switch (this.l) {
            case 0:
                ((DW) this.m).remove();
                return;
            default:
                throw new UnsupportedOperationException("Operation is not supported for read-only collection");
        }
    }

    public FW(Yi0 yi0) {
        this.m = yi0.u.iterator();
    }
}
