package d6;

import android.os.Parcel;
import android.os.Parcelable;

/* JADX INFO: loaded from: classes.dex */
public final class x implements Parcelable {
    public static final v CREATOR = new v();

    /* JADX INFO: renamed from: q, reason: collision with root package name */
    public final w f12330q;

    /* JADX INFO: renamed from: r, reason: collision with root package name */
    public final int f12331r;

    /* JADX INFO: renamed from: s, reason: collision with root package name */
    public final float f12332s;

    /* JADX INFO: renamed from: t, reason: collision with root package name */
    public final boolean f12333t;

    /* JADX INFO: renamed from: u, reason: collision with root package name */
    public final boolean f12334u;

    public x(w wVar, int i, float f3, boolean z8, boolean z9) {
        P6.g.e(wVar, "edge");
        this.f12330q = wVar;
        this.f12331r = i;
        this.f12332s = f3;
        this.f12333t = z8;
        this.f12334u = z9;
        if (0.0f > f3 || f3 > 1.0f) {
            throw new IllegalArgumentException("fraction must be a value between 0f and 1f");
        }
    }

    @Override // android.os.Parcelable
    public final int describeContents() {
        return 0;
    }

    public final boolean equals(Object obj) {
        if (this == obj) {
            return true;
        }
        if (!(obj instanceof x)) {
            return false;
        }
        x xVar = (x) obj;
        return this.f12330q == xVar.f12330q && this.f12331r == xVar.f12331r && Float.compare(this.f12332s, xVar.f12332s) == 0 && this.f12333t == xVar.f12333t && this.f12334u == xVar.f12334u;
    }

    public final int hashCode() {
        return ((((Float.floatToIntBits(this.f12332s) + (((this.f12330q.hashCode() * 31) + this.f12331r) * 31)) * 31) + (this.f12333t ? 1231 : 1237)) * 31) + (this.f12334u ? 1231 : 1237);
    }

    public final String toString() {
        return "ParentAlignment(edge=" + this.f12330q + ", offset=" + this.f12331r + ", fraction=" + this.f12332s + ", isFractionEnabled=" + this.f12333t + ", preferKeylineOverEdge=" + this.f12334u + ")";
    }

    @Override // android.os.Parcelable
    public final void writeToParcel(Parcel parcel, int i) {
        P6.g.e(parcel, "parcel");
        parcel.writeInt(this.f12330q.ordinal());
        parcel.writeInt(this.f12331r);
        parcel.writeFloat(this.f12332s);
        parcel.writeByte(this.f12333t ? (byte) 1 : (byte) 0);
        parcel.writeByte(this.f12334u ? (byte) 1 : (byte) 0);
    }
}
