package w8;

import java.util.ArrayList;
import java.util.Collection;
import java.util.Iterator;

/* JADX INFO: loaded from: classes2.dex */
public final class m implements b {

    /* JADX INFO: renamed from: a, reason: collision with root package name */
    public final /* synthetic */ int f34229a;

    /* JADX INFO: renamed from: b, reason: collision with root package name */
    public final /* synthetic */ Collection f34230b;

    public /* synthetic */ m(int i10, Collection collection) {
        this.f34229a = i10;
        this.f34230b = collection;
    }

    @Override // w8.b
    public final /* bridge */ /* synthetic */ Object then(h hVar) {
        int i10 = this.f34229a;
        Collection collection = this.f34230b;
        switch (i10) {
            case 0:
                ArrayList arrayList = new ArrayList();
                Iterator it = collection.iterator();
                while (it.hasNext()) {
                    arrayList.add(((h) it.next()).g());
                }
                return arrayList;
            default:
                ArrayList arrayList2 = new ArrayList();
                arrayList2.addAll(collection);
                return k.e(arrayList2);
        }
    }
}
