package p034l;

import java.util.HashMap;
import java.util.Map;
import p034l.C1408b;

/* renamed from: l.a */
/* loaded from: classes.dex */
public class C1407a<K, V> extends C1408b<K, V> {

    /* renamed from: h */
    public HashMap<K, C1408b.C1411c<K, V>> f3121h = new HashMap<>();

    @Override // p034l.C1408b
    /* renamed from: b */
    public C1408b.C1411c<K, V> mo1406b(K k) {
        return this.f3121h.get(k);
    }

    public boolean contains(K k) {
        return this.f3121h.containsKey(k);
    }

    @Override // p034l.C1408b
    /* renamed from: f */
    public V mo1402f(K k, V v) {
        C1408b.C1411c<K, V> mo1406b = mo1406b(k);
        if (mo1406b != null) {
            return mo1406b.f3127e;
        }
        this.f3121h.put(k, m1403e(k, v));
        return null;
    }

    @Override // p034l.C1408b
    /* renamed from: g */
    public V mo1401g(K k) {
        V v = (V) super.mo1401g(k);
        this.f3121h.remove(k);
        return v;
    }

    /* renamed from: h */
    public Map.Entry<K, V> m1408h(K k) {
        if (contains(k)) {
            return this.f3121h.get(k).f3129g;
        }
        return null;
    }
}