package com.ss.android.ugc.aweme.im.message.template.component;

import X.7he;
import X.Crj;
import X.M12;
import X.RII;
import X.RIJ;
import X.RSR;
import X.RSS;
import X.RST;
import android.os.Parcel;
import android.os.Parcelable;
import com.bytedance.covode.number.Covode;
import java.util.Objects;
import kotlin.h.b.n;

public final class TextComponent implements BaseComponent<RII> {
    public static final Parcelable.Creator<TextComponent> CREATOR = new RSR();
    public static final Crj LIZIZ = 7he.LIZ(RST.LIZ);
    public static final RSS LIZJ = new RSS((byte) 0);
    public final String LIZ;

    private Object[] LIZIZ() {
        return new Object[]{this.LIZ};
    }

    public final int describeContents() {
        return 0;
    }

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

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

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

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

    static {
        Covode.recordClassIndex(83669);
    }

    public final RII LIZ() {
        RIJ rij = new RIJ();
        rij.LIZ = this.LIZ;
        RII LIZ2 = rij.build();
        n.LIZIZ(LIZ2, "");
        return LIZ2;
    }

    public TextComponent(String str) {
        M12.LIZ(str);
        this.LIZ = str;
    }
}
