package u0;

import java.util.Collections;
import java.util.List;

/* JADX INFO: loaded from: classes.dex */
public final class U {

    /* JADX INFO: renamed from: a, reason: collision with root package name */
    public final T f17205a;

    /* JADX INFO: renamed from: b, reason: collision with root package name */
    public final C3.G f17206b;

    static {
        x0.v.G(0);
        x0.v.G(1);
    }

    public U(T t6, List list) {
        if (!list.isEmpty() && (((Integer) Collections.min(list)).intValue() < 0 || ((Integer) Collections.max(list)).intValue() >= t6.f17200a)) {
            throw new IndexOutOfBoundsException();
        }
        this.f17205a = t6;
        this.f17206b = C3.G.k(list);
    }

    public final boolean equals(Object obj) {
        if (this == obj) {
            return true;
        }
        if (obj != null && U.class == obj.getClass()) {
            U u8 = (U) obj;
            if (this.f17205a.equals(u8.f17205a) && this.f17206b.equals(u8.f17206b)) {
                return true;
            }
        }
        return false;
    }

    public final int hashCode() {
        return (this.f17206b.hashCode() * 31) + this.f17205a.hashCode();
    }
}
