package com.bytedance.android.livesdk.feed.feed;

import android.os.Parcel;
import android.os.Parcelable;
import android.text.TextUtils;
import com.bytedance.covode.number.Covode;

public class FeedDataKey implements Parcelable {
    public static final Parcelable.Creator<FeedDataKey> CREATOR = new Parcelable.Creator<FeedDataKey>() {
        static {
            Covode.recordClassIndex(16060);
        }

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

        public final /* synthetic */ Object createFromParcel(Parcel parcel) {
            return new FeedDataKey(parcel.readString(), parcel.readString(), parcel.readLong(), parcel.readInt(), (byte) 0);
        }
    };
    public static final Integer LIZLLL = 1;
    public static final Integer LJ = 0;
    public static final Integer LJFF = 31;
    public String LIZ;
    public String LIZIZ;
    public long LIZJ;
    public int LJI;

    public int describeContents() {
        return 0;
    }

    static {
        Covode.recordClassIndex(16059);
    }

    public int hashCode() {
        int i;
        Integer num = LJFF;
        int intValue = num.intValue();
        String str = this.LIZIZ;
        int i2 = 0;
        if (str != null) {
            i = str.hashCode();
        } else {
            i = 0;
        }
        int intValue2 = num.intValue() * (intValue + i);
        String str2 = this.LIZ;
        if (str2 != null) {
            i2 = str2.hashCode();
        }
        return (num.intValue() * (intValue2 + i2)) + Long.valueOf(this.LIZJ).hashCode();
    }

    public String toString() {
        StringBuilder sb = new StringBuilder("label: ");
        String str = this.LIZIZ;
        String str2 = "null";
        if (str == null) {
            str = str2;
        }
        sb.append(str);
        sb.append("; url: ");
        String str3 = this.LIZ;
        if (str3 != null) {
            str2 = str3;
        }
        sb.append(str2);
        sb.append("; id: ");
        sb.append(this.LIZJ);
        sb.append("; repeatCheck: ");
        sb.append(this.LJI);
        return sb.toString();
    }

    public boolean equals(Object obj) {
        if (obj != null && (obj instanceof FeedDataKey)) {
            FeedDataKey feedDataKey = (FeedDataKey) obj;
            if (!TextUtils.equals(this.LIZIZ, feedDataKey.LIZIZ) || !TextUtils.equals(this.LIZ, feedDataKey.LIZ) || this.LIZJ != feedDataKey.LIZJ) {
                return false;
            }
            return true;
        }
        return false;
    }

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

    public static FeedDataKey LIZ(String str, String str2, long j) {
        int intValue = LIZLLL.intValue();
        String str3 = str;
        if (!TextUtils.isEmpty(str3)) {
            return new FeedDataKey(str3, str2, j, intValue);
        }
        throw new IllegalArgumentException("label must not be null or empty");
    }

    public FeedDataKey(String str, String str2, long j, int i) {
        this.LIZ = "";
        this.LIZIZ = "";
        this.LIZJ = Long.MIN_VALUE;
        this.LJI = LIZLLL.intValue();
        this.LIZIZ = str;
        this.LIZ = str2;
        this.LIZJ = j;
        this.LJI = i;
    }

    public /* synthetic */ FeedDataKey(String str, String str2, long j, int i, byte b) {
        this(str, str2, j, i);
    }
}
