package com.ss.android.ugc.aweme.sticker.data;

import X.2HN;
import X.C5846F8w;
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.util.ArrayList;
import java.util.List;
import java.util.Objects;

public final class TextStruct implements Parcelable {
    public static final Parcelable.Creator<TextStruct> CREATOR = new C5846F8w();
    @c(LIZ = "anchors")
    public final List<CreateAnchorInfo> anchors;

    static {
        Covode.recordClassIndex(115611);
    }

    public TextStruct() {
        this((List) null, 1, (2HN) null);
    }

    public static /* synthetic */ TextStruct copy$default(TextStruct textStruct, List<CreateAnchorInfo> list, int i, Object obj) {
        if ((i & 1) != 0) {
            list = textStruct.anchors;
        }
        return textStruct.copy(list);
    }

    private Object[] getObjects() {
        return new Object[]{this.anchors};
    }

    public final TextStruct copy(List<CreateAnchorInfo> list) {
        M12.LIZ(list);
        return new TextStruct(list);
    }

    public final int describeContents() {
        return 0;
    }

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

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

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

    public final void writeToParcel(Parcel parcel, int i) {
        M12.LIZ(parcel);
        List<CreateAnchorInfo> list = this.anchors;
        parcel.writeInt(list.size());
        for (CreateAnchorInfo writeToParcel : list) {
            writeToParcel.writeToParcel(parcel, 0);
        }
    }

    public final List<CreateAnchorInfo> getAnchors() {
        return this.anchors;
    }

    public TextStruct(List<CreateAnchorInfo> list) {
        M12.LIZ(list);
        this.anchors = list;
    }

    /* JADX INFO: this call moved to the top of the method (can break code semantics) */
    public /* synthetic */ TextStruct(List list, int i, 2HN r4) {
        this((i & 1) != 0 ? new ArrayList() : list);
    }
}
