package com.mbridge.msdk.foundation.same.report.d;

import android.text.TextUtils;
import com.mbridge.msdk.MBridgeConstans;
import java.util.HashMap;
import java.util.Map;
/* compiled from: ParameterWrapper.java */
/* loaded from: classes5.dex */
public final class e {

    /* renamed from: a  reason: collision with root package name */
    private Map<String, String> f3668a = new HashMap();

    public final Map<String, String> a() {
        return this.f3668a;
    }

    public final void a(String str, Object obj) {
        if (TextUtils.isEmpty(str) || obj == null) {
            return;
        }
        try {
            if (obj instanceof String) {
                if (!TextUtils.isEmpty((String) obj)) {
                    this.f3668a.put(str, (String) obj);
                }
            } else {
                this.f3668a.put(str, obj + "");
            }
        } catch (Exception e) {
            if (MBridgeConstans.DEBUG) {
                e.printStackTrace();
            }
        }
    }

    public final boolean a(String str) {
        return this.f3668a.containsKey(str);
    }

    public final Object b(String str) {
        return this.f3668a.get(str);
    }

    public final void c(String str) {
        if (this.f3668a == null || TextUtils.isEmpty(str)) {
            return;
        }
        this.f3668a.remove(str);
    }

    public final void a(e eVar) {
        Map<String, String> map;
        Map<String, String> map2;
        if (eVar == null || (map = eVar.f3668a) == null || (map2 = this.f3668a) == null) {
            return;
        }
        map2.putAll(map);
    }

    public final void a(Map map) {
        if (map == null || map.size() <= 0) {
            return;
        }
        this.f3668a.putAll(map);
    }
}
