package com.google.android.gms.internal.measurement;

import com.google.common.collect.ImmutableSet;
import java.util.HashMap;

/* JADX INFO: loaded from: classes2.dex */
public final class c {

    /* JADX INFO: renamed from: d, reason: collision with root package name */
    public static final ImmutableSet f20134d = ImmutableSet.m(3, "_syn", "_err", "_el");

    /* JADX INFO: renamed from: a, reason: collision with root package name */
    public String f20135a;

    /* JADX INFO: renamed from: b, reason: collision with root package name */
    public final long f20136b;

    /* JADX INFO: renamed from: c, reason: collision with root package name */
    public final HashMap f20137c;

    public c(String str, HashMap map, long j10) {
        this.f20135a = str;
        this.f20136b = j10;
        HashMap map2 = new HashMap();
        this.f20137c = map2;
        if (map != null) {
            map2.putAll(map);
        }
    }

    public static Object a(Object obj, Object obj2, String str) {
        return (f20134d.contains(str) && (obj2 instanceof Double)) ? Long.valueOf(Math.round(((Double) obj2).doubleValue())) : str.startsWith("_") ? ((obj instanceof String) || obj == null) ? obj2 : obj : obj instanceof Double ? obj2 : obj instanceof Long ? Long.valueOf(Math.round(((Double) obj2).doubleValue())) : obj instanceof String ? obj2.toString() : obj2;
    }

    public final /* synthetic */ Object clone() {
        return new c(this.f20135a, new HashMap(this.f20137c), this.f20136b);
    }

    public final boolean equals(Object obj) {
        if (this == obj) {
            return true;
        }
        if (!(obj instanceof c)) {
            return false;
        }
        c cVar = (c) obj;
        if (this.f20136b == cVar.f20136b && this.f20135a.equals(cVar.f20135a)) {
            return this.f20137c.equals(cVar.f20137c);
        }
        return false;
    }

    public final int hashCode() {
        int iHashCode = this.f20135a.hashCode() * 31;
        long j10 = this.f20136b;
        return this.f20137c.hashCode() + ((iHashCode + ((int) (j10 ^ (j10 >>> 32)))) * 31);
    }

    public final String toString() {
        String str = this.f20135a;
        String strValueOf = String.valueOf(this.f20137c);
        StringBuilder sbN = com.google.android.gms.measurement.internal.u1.n("Event{name='", str, "', timestamp=");
        sbN.append(this.f20136b);
        sbN.append(", params=");
        sbN.append(strValueOf);
        sbN.append("}");
        return sbN.toString();
    }
}
