package com.ss.android.ugc.aweme.image.model;

import X.C22905ua;
import X.C38896fH;
import X.M12;
import android.os.Parcel;
import android.os.Parcelable;
import com.bytedance.covode.number.Covode;
import com.google.gson.a.c;
import java.io.Serializable;
import java.util.Objects;

public final class ImageBufferData implements Parcelable, Serializable {
    public static final Parcelable.Creator<ImageBufferData> CREATOR = new C22905ua();
    @c(LIZ = "height")
    public final int height;
    @c(LIZ = "path")
    @C38896fH
    public final String path;
    @c(LIZ = "width")
    public final int width;

    static {
        Covode.recordClassIndex(87507);
    }

    public static int INVOKESTATIC_com_ss_android_ugc_aweme_image_model_ImageBufferData_com_ss_android_ugc_aweme_lancet_HashCodeLancet_hashCode(int i) {
        return i;
    }

    private Object[] LIZ() {
        return new Object[]{this.path, Integer.valueOf(this.width), Integer.valueOf(this.height)};
    }

    public static /* synthetic */ ImageBufferData copy$default(ImageBufferData imageBufferData, String str, int i, int i2, int i3, Object obj) {
        if ((i3 & 1) != 0) {
            str = imageBufferData.path;
        }
        if ((i3 & 2) != 0) {
            i = imageBufferData.width;
        }
        if ((i3 & 4) != 0) {
            i2 = imageBufferData.height;
        }
        return imageBufferData.copy(str, i, i2);
    }

    public final ImageBufferData copy(String str, int i, int i2) {
        M12.LIZ(str);
        return new ImageBufferData(str, i, i2);
    }

    public final int describeContents() {
        return 0;
    }

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

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

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

    public final void writeToParcel(Parcel parcel, int i) {
        M12.LIZ(parcel);
        parcel.writeString(this.path);
        parcel.writeInt(this.width);
        parcel.writeInt(this.height);
    }

    public final int getHeight() {
        return this.height;
    }

    public final String getPath() {
        return this.path;
    }

    public final int getWidth() {
        return this.width;
    }

    public ImageBufferData(String str, int i, int i2) {
        M12.LIZ(str);
        this.path = str;
        this.width = i;
        this.height = i2;
    }
}
