package o;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.Iterator;
import java.util.List;

/* compiled from: r8-map-id-3b7cc9102578c509342fa2f0fabed2bfc72239cd258d579fc679bfcbc198b048 */
/* loaded from: classes.dex */
public abstract class Yn0 implements InterfaceC1991no0, InterfaceC1037do0 {
    public final String l;
    public final HashMap m = new HashMap();

    public Yn0(String str) {
        this.l = str;
    }

    @Override // o.InterfaceC1991no0
    public final Iterator a() {
        return new C0751ao0(this.m.keySet().iterator());
    }

    @Override // o.InterfaceC1991no0
    public final InterfaceC1991no0 b(String str, C2062oc0 c2062oc0, ArrayList arrayList) {
        return "toString".equals(str) ? new C2560to0(this.l) : InterfaceC1037do0.e(this, new C2560to0(str), c2062oc0, arrayList);
    }

    @Override // o.InterfaceC1037do0
    public final InterfaceC1991no0 c(String str) {
        HashMap map = this.m;
        return map.containsKey(str) ? (InterfaceC1991no0) map.get(str) : InterfaceC1991no0.d;
    }

    @Override // o.InterfaceC1037do0
    public final void d(String str, InterfaceC1991no0 interfaceC1991no0) {
        HashMap map = this.m;
        if (interfaceC1991no0 == null) {
            map.remove(str);
        } else {
            map.put(str, interfaceC1991no0);
        }
    }

    public final boolean equals(Object obj) {
        if (this == obj) {
            return true;
        }
        if (!(obj instanceof Yn0)) {
            return false;
        }
        Yn0 yn0 = (Yn0) obj;
        String str = this.l;
        if (str != null) {
            return str.equals(yn0.l);
        }
        return false;
    }

    @Override // o.InterfaceC1037do0
    public final boolean f(String str) {
        return this.m.containsKey(str);
    }

    public abstract InterfaceC1991no0 g(C2062oc0 c2062oc0, List list);

    public final int hashCode() {
        String str = this.l;
        if (str != null) {
            return str.hashCode();
        }
        return 0;
    }

    @Override // o.InterfaceC1991no0
    public final String zzc() {
        return this.l;
    }

    @Override // o.InterfaceC1991no0
    public final Double zzd() {
        return Double.valueOf(Double.NaN);
    }

    @Override // o.InterfaceC1991no0
    public final Boolean zze() {
        return Boolean.TRUE;
    }

    @Override // o.InterfaceC1991no0
    public InterfaceC1991no0 h() {
        return this;
    }
}
