package defpackage;

import j$.util.Map;
import java.io.Serializable;
import java.util.Collection;
import java.util.Iterator;
import java.util.Map;
import java.util.Set;
import java.util.function.BiConsumer;
import java.util.function.BiFunction;
import java.util.function.Function;

/* renamed from: ᵝᵥˌﾞ, reason: contains not printable characters */
/* loaded from: classes.dex */
public abstract class AbstractC2917 implements Map, Serializable, j$.util.Map {

    /* renamed from: ᵢˇᵭ, reason: contains not printable characters */
    public transient C5118 f11346;

    /* renamed from: ᵧᵾˀˈ, reason: contains not printable characters */
    public transient C0651 f11347;

    /* renamed from: ᵿʗᵝʽ, reason: contains not printable characters */
    public transient C1021 f11348;

    @Override // java.util.Map
    public final void clear() {
        throw new UnsupportedOperationException();
    }

    @Override // java.util.Map, j$.util.Map, java.util.concurrent.ConcurrentMap
    public /* synthetic */ Object compute(Object obj, BiFunction biFunction) {
        return Map.CC.$default$compute(this, obj, biFunction);
    }

    @Override // java.util.Map, j$.util.Map, java.util.concurrent.ConcurrentMap
    public /* synthetic */ Object computeIfAbsent(Object obj, Function function) {
        return Map.CC.$default$computeIfAbsent(this, obj, function);
    }

    @Override // java.util.Map, j$.util.Map, java.util.concurrent.ConcurrentMap
    public /* synthetic */ Object computeIfPresent(Object obj, BiFunction biFunction) {
        return Map.CC.$default$computeIfPresent(this, obj, biFunction);
    }

    @Override // java.util.Map
    public final boolean containsKey(Object obj) {
        return get(obj) != null;
    }

    @Override // java.util.Map
    public final boolean containsValue(Object obj) {
        C1021 c1021 = this.f11348;
        if (c1021 == null) {
            C4662 c4662 = (C4662) this;
            C1021 c10212 = new C1021(c4662.f17265, 1, c4662.f17264);
            this.f11348 = c10212;
            c1021 = c10212;
        }
        return c1021.contains(obj);
    }

    @Override // java.util.Map
    public final Set entrySet() {
        C0651 c0651 = this.f11347;
        if (c0651 != null) {
            return c0651;
        }
        C4662 c4662 = (C4662) this;
        C0651 c06512 = new C0651(c4662, c4662.f17265, c4662.f17264);
        this.f11347 = c06512;
        return c06512;
    }

    @Override // java.util.Map
    public final boolean equals(Object obj) {
        if (this == obj) {
            return true;
        }
        if (obj instanceof java.util.Map) {
            return entrySet().equals(((java.util.Map) obj).entrySet());
        }
        return false;
    }

    @Override // java.util.Map, j$.util.Map, java.util.concurrent.ConcurrentMap
    public /* synthetic */ void forEach(BiConsumer biConsumer) {
        Map.CC.$default$forEach(this, biConsumer);
    }

    @Override // java.util.Map
    public abstract Object get(Object obj);

    @Override // java.util.Map, j$.util.Map, java.util.concurrent.ConcurrentMap
    public final Object getOrDefault(Object obj, Object obj2) {
        Object obj3 = get(obj);
        return obj3 != null ? obj3 : obj2;
    }

    @Override // java.util.Map
    public final int hashCode() {
        C0651 c0651 = this.f11347;
        if (c0651 == null) {
            C4662 c4662 = (C4662) this;
            C0651 c06512 = new C0651(c4662, c4662.f17265, c4662.f17264);
            this.f11347 = c06512;
            c0651 = c06512;
        }
        Iterator it = c0651.iterator();
        int iHashCode = 0;
        while (it.hasNext()) {
            Object next = it.next();
            iHashCode += next != null ? next.hashCode() : 0;
        }
        return iHashCode;
    }

    @Override // java.util.Map
    public final boolean isEmpty() {
        return ((C4662) this).size() == 0;
    }

    @Override // java.util.Map
    public final Set keySet() {
        C5118 c5118 = this.f11346;
        if (c5118 != null) {
            return c5118;
        }
        C4662 c4662 = (C4662) this;
        C5118 c51182 = new C5118(c4662, new C1021(c4662.f17265, 0, c4662.f17264));
        this.f11346 = c51182;
        return c51182;
    }

    @Override // java.util.Map, j$.util.Map, java.util.concurrent.ConcurrentMap
    public /* synthetic */ Object merge(Object obj, Object obj2, BiFunction biFunction) {
        return Map.CC.$default$merge(this, obj, obj2, biFunction);
    }

    @Override // java.util.Map
    public final Object put(Object obj, Object obj2) {
        throw new UnsupportedOperationException();
    }

    @Override // java.util.Map
    public final void putAll(java.util.Map map) {
        throw new UnsupportedOperationException();
    }

    @Override // java.util.Map, j$.util.Map, java.util.concurrent.ConcurrentMap
    public /* synthetic */ Object putIfAbsent(Object obj, Object obj2) {
        return Map.CC.$default$putIfAbsent(this, obj, obj2);
    }

    @Override // java.util.Map
    public final Object remove(Object obj) {
        throw new UnsupportedOperationException();
    }

    @Override // java.util.Map, j$.util.Map, java.util.concurrent.ConcurrentMap
    public /* synthetic */ boolean remove(Object obj, Object obj2) {
        return Map.CC.$default$remove(this, obj, obj2);
    }

    @Override // java.util.Map, j$.util.Map, java.util.concurrent.ConcurrentMap
    public /* synthetic */ Object replace(Object obj, Object obj2) {
        return Map.CC.$default$replace(this, obj, obj2);
    }

    @Override // java.util.Map, j$.util.Map, java.util.concurrent.ConcurrentMap
    public /* synthetic */ boolean replace(Object obj, Object obj2, Object obj3) {
        return Map.CC.$default$replace(this, obj, obj2, obj3);
    }

    @Override // java.util.Map, j$.util.Map, java.util.concurrent.ConcurrentMap
    public /* synthetic */ void replaceAll(BiFunction biFunction) {
        Map.CC.$default$replaceAll(this, biFunction);
    }

    public final String toString() {
        int i = ((C4662) this).f17264;
        if (i < 0) {
            ᵹˉᵞ.ˌᵜᵹᵩ(AbstractC2990.m7313(i, "size cannot be negative but was: "));
            return null;
        }
        StringBuilder sb = new StringBuilder((int) Math.min(i * 8, 1073741824L));
        sb.append('{');
        Iterator it = ((C0651) entrySet()).iterator();
        boolean z = true;
        while (it.hasNext()) {
            Map.Entry entry = (Map.Entry) it.next();
            if (!z) {
                sb.append(", ");
            }
            sb.append(entry.getKey());
            sb.append('=');
            sb.append(entry.getValue());
            z = false;
        }
        sb.append('}');
        return sb.toString();
    }

    @Override // java.util.Map
    public final Collection values() {
        C1021 c1021 = this.f11348;
        if (c1021 != null) {
            return c1021;
        }
        C4662 c4662 = (C4662) this;
        C1021 c10212 = new C1021(c4662.f17265, 1, c4662.f17264);
        this.f11348 = c10212;
        return c10212;
    }
}
