package k3;

import java.util.Map;

/* JADX INFO: loaded from: classes.dex */
public final class n implements Map.Entry {

    /* JADX INFO: renamed from: k, reason: collision with root package name */
    public n f8647k;

    /* JADX INFO: renamed from: l, reason: collision with root package name */
    public n f8648l;

    /* JADX INFO: renamed from: m, reason: collision with root package name */
    public n f8649m;

    /* JADX INFO: renamed from: n, reason: collision with root package name */
    public n f8650n;

    /* JADX INFO: renamed from: o, reason: collision with root package name */
    public n f8651o;
    public final Object p;
    public final boolean q;

    /* JADX INFO: renamed from: r, reason: collision with root package name */
    public Object f8652r;

    /* JADX INFO: renamed from: s, reason: collision with root package name */
    public int f8653s;

    public n(boolean z5) {
        this.p = null;
        this.q = z5;
        this.f8651o = this;
        this.f8650n = this;
    }

    @Override // java.util.Map.Entry
    public final boolean equals(Object obj) {
        if (obj instanceof Map.Entry) {
            Map.Entry entry = (Map.Entry) obj;
            Object obj2 = this.p;
            if (obj2 != null ? obj2.equals(entry.getKey()) : entry.getKey() == null) {
                Object obj3 = this.f8652r;
                if (obj3 == null) {
                    if (entry.getValue() == null) {
                        return true;
                    }
                } else if (obj3.equals(entry.getValue())) {
                    return true;
                }
            }
        }
        return false;
    }

    @Override // java.util.Map.Entry
    public final Object getKey() {
        return this.p;
    }

    @Override // java.util.Map.Entry
    public final Object getValue() {
        return this.f8652r;
    }

    @Override // java.util.Map.Entry
    public final int hashCode() {
        Object obj = this.p;
        int iHashCode = obj == null ? 0 : obj.hashCode();
        Object obj2 = this.f8652r;
        return (obj2 != null ? obj2.hashCode() : 0) ^ iHashCode;
    }

    @Override // java.util.Map.Entry
    public final Object setValue(Object obj) {
        if (obj == null && !this.q) {
            throw new NullPointerException("value == null");
        }
        Object obj2 = this.f8652r;
        this.f8652r = obj;
        return obj2;
    }

    public final String toString() {
        return this.p + "=" + this.f8652r;
    }

    public n(boolean z5, n nVar, Object obj, n nVar2, n nVar3) {
        this.f8647k = nVar;
        this.p = obj;
        this.q = z5;
        this.f8653s = 1;
        this.f8650n = nVar2;
        this.f8651o = nVar3;
        nVar3.f8650n = this;
        nVar2.f8651o = this;
    }
}
