package B2;

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

    /* JADX INFO: renamed from: a, reason: collision with root package name */
    public final z2.b f462a;

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

    /* JADX INFO: renamed from: c, reason: collision with root package name */
    public final b f464c;

    public c(z2.b bVar, b bVar2, b bVar3) {
        this.f462a = bVar;
        this.f463b = bVar2;
        this.f464c = bVar3;
        if (bVar.b() == 0 && bVar.a() == 0) {
            throw new IllegalArgumentException("Bounds must be non zero");
        }
        if (bVar.f26295a != 0 && bVar.f26296b != 0) {
            throw new IllegalArgumentException("Bounding rectangle must start at the top or left window edge for folding features");
        }
    }

    public final boolean equals(Object obj) {
        if (this == obj) {
            return true;
        }
        if (!c.class.equals(obj != null ? obj.getClass() : null)) {
            return false;
        }
        kotlin.jvm.internal.o.f(obj, "null cannot be cast to non-null type androidx.window.layout.HardwareFoldingFeature");
        c cVar = (c) obj;
        return kotlin.jvm.internal.o.c(this.f462a, cVar.f462a) && kotlin.jvm.internal.o.c(this.f463b, cVar.f463b) && kotlin.jvm.internal.o.c(this.f464c, cVar.f464c);
    }

    public final int hashCode() {
        return this.f464c.hashCode() + ((this.f463b.hashCode() + (this.f462a.hashCode() * 31)) * 31);
    }

    public final String toString() {
        return c.class.getSimpleName() + " { " + this.f462a + ", type=" + this.f463b + ", state=" + this.f464c + " }";
    }
}
