package defpackage;

import java.util.ArrayList;
import java.util.List;
import java.util.stream.Collector;

/* JADX INFO: loaded from: classes2.dex */
@az3
@dh4
@li2
public final class h96 {
    public static final Object a;

    public static final class a {
        public Object a;
        public List b;

        public final void a(Object obj) {
            obj.getClass();
            if (this.a == null) {
                this.a = obj;
                return;
            }
            if (this.b.isEmpty()) {
                ArrayList arrayList = new ArrayList(4);
                this.b = arrayList;
                arrayList.add(obj);
            } else if (this.b.size() < 4) {
                this.b.add(obj);
            } else {
                b(true);
                throw null;
            }
        }

        public final void b(boolean z) {
            StringBuilder sb = new StringBuilder("expected one element but was: <");
            sb.append(this.a);
            for (Object obj : this.b) {
                sb.append(", ");
                sb.append(obj);
            }
            if (z) {
                sb.append(", ...");
            }
            sb.append('>');
            throw new IllegalArgumentException(sb.toString());
        }
    }

    static {
        f41 f41Var = new f41(1);
        g41 g41Var = new g41(1);
        h41 h41Var = new h41(2);
        i41 i41Var = new i41(2);
        Collector.Characteristics characteristics = Collector.Characteristics.UNORDERED;
        Collector.of(f41Var, g41Var, h41Var, i41Var, characteristics);
        a = new Object();
        Collector.of(new f41(1), new g41(2), new h41(2), new i41(3), characteristics);
    }
}
