package defpackage;

import java.util.HashMap;

/* renamed from: ᵳᵦ, reason: contains not printable characters */
/* loaded from: classes3.dex */
public final class C4587 {

    /* renamed from: ᵻᵢﹳᵰ, reason: contains not printable characters */
    public static final AbstractC1559 f17030 = AbstractC1559.m4528(3, "_syn", "_err", "_el");

    /* renamed from: ˏᵙ, reason: contains not printable characters */
    public final HashMap f17031;

    /* renamed from: ᵥᵯˎ, reason: contains not printable characters */
    public String f17032;

    /* renamed from: ᵴᵳ, reason: contains not printable characters */
    public final long f17033;

    public C4587(String str, long j, HashMap map) {
        this.f17032 = str;
        this.f17033 = j;
        HashMap map2 = new HashMap();
        this.f17031 = map2;
        if (map != null) {
            map2.putAll(map);
        }
    }

    /* renamed from: ᵴᵳ, reason: contains not printable characters */
    public static Object m9733(String str, Object obj, Object obj2) {
        if (f17030.contains(str) && (obj2 instanceof Double)) {
            return Long.valueOf(Math.round(((Double) obj2).doubleValue()));
        }
        if (str.startsWith("_")) {
            if (!(obj instanceof String) && obj != null) {
                return obj;
            }
        } else if (!(obj instanceof Double)) {
            if (obj instanceof Long) {
                return Long.valueOf(Math.round(((Double) obj2).doubleValue()));
            }
            if (obj instanceof String) {
                return obj2.toString();
            }
        }
        return obj2;
    }

    public final boolean equals(Object obj) {
        if (this == obj) {
            return true;
        }
        if (!(obj instanceof C4587)) {
            return false;
        }
        C4587 c4587 = (C4587) obj;
        if (this.f17033 == c4587.f17033 && this.f17032.equals(c4587.f17032)) {
            return this.f17031.equals(c4587.f17031);
        }
        return false;
    }

    public final int hashCode() {
        int iHashCode = this.f17032.hashCode() * 31;
        long j = this.f17033;
        return this.f17031.hashCode() + ((iHashCode + ((int) (j ^ (j >>> 32)))) * 31);
    }

    public final String toString() {
        String str = this.f17032;
        String string = this.f17031.toString();
        int length = String.valueOf(str).length();
        long j = this.f17033;
        StringBuilder sb = new StringBuilder(length + 25 + String.valueOf(j).length() + 9 + string.length() + 1);
        sb.append("Event{name='");
        sb.append(str);
        sb.append("', timestamp=");
        AbstractC1327.m4114(sb, j, ", params=", string);
        sb.append("}");
        return sb.toString();
    }

    /* renamed from: ᵥᵯˎ, reason: contains not printable characters and merged with bridge method [inline-methods] */
    public final C4587 clone() {
        return new C4587(this.f17032, this.f17033, new HashMap(this.f17031));
    }
}
