package com.ss.android.ugc.aweme.shortvideo;

import X.2HN;
import X.AnonymousClass53Q;
import X.M12;
import android.os.Parcel;
import android.os.Parcelable;
import com.bytedance.covode.number.Covode;
import java.util.Objects;

public final class DuetLayoutInfo implements Parcelable {
    public static final Parcelable.Creator<DuetLayoutInfo> CREATOR = new AnonymousClass53Q();
    public final int type;
    public final float x1;
    public final float x2;
    public final float y1;
    public final float y2;

    static {
        Covode.recordClassIndex(108139);
    }

    public DuetLayoutInfo() {
        this(0, 0.0f, 0.0f, 0.0f, 0.0f, 31, (2HN) null);
    }

    public static /* synthetic */ DuetLayoutInfo copy$default(DuetLayoutInfo duetLayoutInfo, int i, float f, float f2, float f3, float f4, int i2, Object obj) {
        if ((i2 & 1) != 0) {
            i = duetLayoutInfo.type;
        }
        if ((i2 & 2) != 0) {
            f = duetLayoutInfo.x1;
        }
        if ((i2 & 4) != 0) {
            f2 = duetLayoutInfo.y1;
        }
        if ((i2 & 8) != 0) {
            f3 = duetLayoutInfo.x2;
        }
        if ((i2 & 16) != 0) {
            f4 = duetLayoutInfo.y2;
        }
        return duetLayoutInfo.copy(i, f, f2, f3, f4);
    }

    private Object[] getObjects() {
        return new Object[]{Integer.valueOf(this.type), Float.valueOf(this.x1), Float.valueOf(this.y1), Float.valueOf(this.x2), Float.valueOf(this.y2)};
    }

    public final DuetLayoutInfo copy(int i, float f, float f2, float f3, float f4) {
        return new DuetLayoutInfo(i, f, f2, f3, f4);
    }

    public final int describeContents() {
        return 0;
    }

    public final boolean equals(Object obj) {
        if (this == obj) {
            return true;
        }
        if (!(obj instanceof DuetLayoutInfo)) {
            return false;
        }
        return M12.LIZ(((DuetLayoutInfo) obj).getObjects(), getObjects());
    }

    public final int hashCode() {
        return Objects.hash(getObjects());
    }

    public final String toString() {
        return M12.LIZ("DuetLayoutInfo:%s,%s,%s,%s,%s", getObjects());
    }

    public final void writeToParcel(Parcel parcel, int i) {
        M12.LIZ(parcel);
        parcel.writeInt(this.type);
        parcel.writeFloat(this.x1);
        parcel.writeFloat(this.y1);
        parcel.writeFloat(this.x2);
        parcel.writeFloat(this.y2);
    }

    public final int getType() {
        return this.type;
    }

    public final float getX1() {
        return this.x1;
    }

    public final float getX2() {
        return this.x2;
    }

    public final float getY1() {
        return this.y1;
    }

    public final float getY2() {
        return this.y2;
    }

    public DuetLayoutInfo(int i, float f, float f2, float f3, float f4) {
        this.type = i;
        this.x1 = f;
        this.y1 = f2;
        this.x2 = f3;
        this.y2 = f4;
    }

    /* JADX INFO: this call moved to the top of the method (can break code semantics) */
    public /* synthetic */ DuetLayoutInfo(int i, float f, float f2, float f3, float f4, int i2, 2HN r13) {
        this((i2 & 1) != 0 ? -1 : i, (i2 & 2) != 0 ? 0.0f : f, (i2 & 4) != 0 ? 0.0f : f2, (i2 & 8) != 0 ? 0.0f : f3, (i2 & 16) == 0 ? f4 : 0.0f);
    }
}
