package com.ss.android.ugc.cut_ui;

import X.C43946nQ;
import X.M12;
import android.os.Parcel;
import android.os.Parcelable;
import com.bytedance.covode.number.Covode;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;
import kotlin.h.b.n;

public final class CutResultData implements Parcelable {
    public static final Parcelable.Creator<CutResultData> CREATOR = new C43946nQ();
    public final String LIZ;
    public final String LIZIZ;
    public final List<String> LIZJ;
    public final List<String> LIZLLL;
    public final ArrayList<MediaItem> LJ;

    static {
        Covode.recordClassIndex(124900);
    }

    public final int describeContents() {
        return 0;
    }

    public final boolean equals(Object obj) {
        if (this == obj) {
            return true;
        }
        if (!(obj instanceof CutResultData)) {
            return false;
        }
        CutResultData cutResultData = (CutResultData) obj;
        return n.LIZ(this.LIZ, cutResultData.LIZ) && n.LIZ(this.LIZIZ, cutResultData.LIZIZ) && n.LIZ(this.LIZJ, cutResultData.LIZJ) && n.LIZ(this.LIZLLL, cutResultData.LIZLLL) && n.LIZ(this.LJ, cutResultData.LJ);
    }

    public final int hashCode() {
        String str = this.LIZ;
        int i = 0;
        int hashCode = (str == null ? 0 : str.hashCode()) * 31;
        String str2 = this.LIZIZ;
        int hashCode2 = (hashCode + (str2 == null ? 0 : str2.hashCode())) * 31;
        List<String> list = this.LIZJ;
        int hashCode3 = (hashCode2 + (list == null ? 0 : list.hashCode())) * 31;
        List<String> list2 = this.LIZLLL;
        int hashCode4 = (hashCode3 + (list2 == null ? 0 : list2.hashCode())) * 31;
        ArrayList<MediaItem> arrayList = this.LJ;
        if (arrayList != null) {
            i = arrayList.hashCode();
        }
        return hashCode4 + i;
    }

    public final String toString() {
        return "CutResultData(conactFilePath=" + this.LIZ + ", conactWorksapceId=" + this.LIZIZ + ", originTextList=" + this.LIZJ + ", lastTextList=" + this.LIZLLL + ", editMediaItemList=" + this.LJ + ')';
    }

    public final void writeToParcel(Parcel parcel, int i) {
        M12.LIZ(parcel);
        parcel.writeString(this.LIZ);
        parcel.writeString(this.LIZIZ);
        parcel.writeStringList(this.LIZJ);
        parcel.writeStringList(this.LIZLLL);
        ArrayList<MediaItem> arrayList = this.LJ;
        if (arrayList == null) {
            parcel.writeInt(0);
            return;
        }
        parcel.writeInt(1);
        parcel.writeInt(arrayList.size());
        Iterator<MediaItem> it = arrayList.iterator();
        while (it.hasNext()) {
            it.next().writeToParcel(parcel, i);
        }
    }

    public /* synthetic */ CutResultData(String str, String str2) {
        this(str, str2, (List<String>) null, (List<String>) null, (ArrayList<MediaItem>) null);
    }

    public CutResultData(String str, String str2, List<String> list, List<String> list2, ArrayList<MediaItem> arrayList) {
        this.LIZ = str;
        this.LIZIZ = str2;
        this.LIZJ = list;
        this.LIZLLL = list2;
        this.LJ = arrayList;
    }

    public static /* synthetic */ CutResultData LIZ(CutResultData cutResultData, String str, String str2, List list, List list2, ArrayList arrayList, int i) {
        ArrayList arrayList2 = arrayList;
        List list3 = list2;
        List list4 = list;
        String str3 = str;
        String str4 = str2;
        if ((i & 1) != 0) {
            str3 = cutResultData.LIZ;
        }
        if ((i & 2) != 0) {
            str4 = cutResultData.LIZIZ;
        }
        if ((i & 4) != 0) {
            list4 = cutResultData.LIZJ;
        }
        if ((i & 8) != 0) {
            list3 = cutResultData.LIZLLL;
        }
        if ((i & 16) != 0) {
            arrayList2 = cutResultData.LJ;
        }
        return new CutResultData(str3, str4, list4, list3, arrayList2);
    }
}
