package com.ss.android.ugc.aweme.views.mention;

import android.os.Parcel;
import android.os.Parcelable;
import android.text.style.ForegroundColorSpan;
import com.bytedance.covode.number.Covode;
import com.ss.android.ugc.aweme.model.TextExtraStruct;

public class MentionEditText$MentionSpan extends ForegroundColorSpan {
    public static final Parcelable.Creator<MentionEditText$MentionSpan> CREATOR = new Parcelable.Creator<MentionEditText$MentionSpan>() {
        static {
            Covode.recordClassIndex(123821);
        }

        public final /* bridge */ /* synthetic */ Object[] newArray(int i) {
            return new MentionEditText$MentionSpan[i];
        }

        public final /* synthetic */ Object createFromParcel(Parcel parcel) {
            return new MentionEditText$MentionSpan(parcel);
        }
    };
    public String LIZ;
    public String LIZIZ;
    public int LIZJ;
    public TextExtraStruct LIZLLL;
    public String LJ = "";
    public int LJFF;
    public String LJI = "";

    public int describeContents() {
        return 0;
    }

    static {
        Covode.recordClassIndex(123820);
    }

    public int hashCode() {
        int i;
        int i2;
        int i3;
        int i4;
        String str = this.LIZ;
        int i5 = 0;
        if (str != null) {
            i = str.hashCode();
        } else {
            i = 0;
        }
        int i6 = i * 31;
        String str2 = this.LIZIZ;
        if (str2 != null) {
            i2 = str2.hashCode();
        } else {
            i2 = 0;
        }
        int i7 = (((i6 + i2) * 31) + this.LIZJ) * 31;
        TextExtraStruct textExtraStruct = this.LIZLLL;
        if (textExtraStruct != null) {
            i3 = textExtraStruct.hashCode();
        } else {
            i3 = 0;
        }
        int i8 = (i7 + i3) * 31;
        String str3 = this.LJ;
        if (str3 != null) {
            i4 = str3.hashCode();
        } else {
            i4 = 0;
        }
        int i9 = (((i8 + i4) * 31) + this.LJFF) * 31;
        String str4 = this.LJI;
        if (str4 != null) {
            i5 = str4.hashCode();
        }
        return i9 + i5;
    }

    public final void LIZ(int i) {
        this.LJFF = i;
        this.LIZLLL.setSubType(i);
    }

    public final void LIZ(String str) {
        this.LJ = str;
        this.LIZLLL.setAwemeId(str);
    }

    public final void LIZ(boolean z) {
        this.LIZLLL.setStarAtlasTag(z);
    }

    public MentionEditText$MentionSpan(Parcel parcel) {
        super(parcel);
        this.LIZ = parcel.readString();
        this.LIZIZ = parcel.readString();
        this.LIZJ = parcel.readInt();
        this.LIZLLL = (TextExtraStruct) parcel.readParcelable(TextExtraStruct.class.getClassLoader());
        this.LJI = parcel.readString();
    }

    public boolean equals(Object obj) {
        if (this == obj) {
            return true;
        }
        if (obj != null && getClass() == obj.getClass()) {
            MentionEditText$MentionSpan mentionEditText$MentionSpan = (MentionEditText$MentionSpan) obj;
            if (this.LIZJ != mentionEditText$MentionSpan.LIZJ || this.LJFF != mentionEditText$MentionSpan.LJFF) {
                return false;
            }
            String str = this.LIZ;
            if (str == null ? mentionEditText$MentionSpan.LIZ != null : !str.equals(mentionEditText$MentionSpan.LIZ)) {
                return false;
            }
            String str2 = this.LIZIZ;
            if (str2 == null ? mentionEditText$MentionSpan.LIZIZ != null : !str2.equals(mentionEditText$MentionSpan.LIZIZ)) {
                return false;
            }
            TextExtraStruct textExtraStruct = this.LIZLLL;
            if (textExtraStruct == null ? mentionEditText$MentionSpan.LIZLLL != null : !textExtraStruct.equals(mentionEditText$MentionSpan.LIZLLL)) {
                return false;
            }
            String str3 = this.LJ;
            if (str3 == null ? mentionEditText$MentionSpan.LJ != null : !str3.equals(mentionEditText$MentionSpan.LJ)) {
                return false;
            }
            String str4 = this.LJI;
            String str5 = mentionEditText$MentionSpan.LJI;
            if (str4 != null) {
                return str4.equals(str5);
            }
            if (str5 == null) {
                return true;
            }
        }
        return false;
    }

    public void writeToParcel(Parcel parcel, int i) {
        parcel.writeString(this.LIZ);
        parcel.writeString(this.LIZIZ);
        parcel.writeInt(this.LIZJ);
        parcel.writeParcelable(this.LIZLLL, i);
        parcel.writeString(this.LJI);
    }

    public MentionEditText$MentionSpan(int i, String str, String str2, int i2, String str3, String str4) {
        super(i);
        this.LIZ = str2;
        this.LIZIZ = str;
        this.LIZJ = i2;
        this.LJI = str4;
        TextExtraStruct textExtraStruct = new TextExtraStruct();
        this.LIZLLL = textExtraStruct;
        textExtraStruct.setUserId(str2);
        this.LIZLLL.setType(i2);
        this.LIZLLL.setAtUserType(str3);
        this.LIZLLL.setSecUid(str4);
    }
}
