package com.google.android.gms.internal.ads;

import java.util.Map;

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

    /* JADX INFO: renamed from: a, reason: collision with root package name */
    public w92 f17957a;

    /* JADX INFO: renamed from: b, reason: collision with root package name */
    public w92 f17958b;

    /* JADX INFO: renamed from: c, reason: collision with root package name */
    public w92 f17959c;

    /* JADX INFO: renamed from: d, reason: collision with root package name */
    public w92 f17960d;

    /* JADX INFO: renamed from: e, reason: collision with root package name */
    public w92 f17961e;

    /* JADX INFO: renamed from: f, reason: collision with root package name */
    public final Object f17962f;

    /* JADX INFO: renamed from: g, reason: collision with root package name */
    public final boolean f17963g;

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

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

    public w92() {
        this.f17962f = null;
        this.f17963g = false;
        this.f17961e = this;
        this.f17960d = 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.f17962f;
            if (obj2 != null ? obj2.equals(entry.getKey()) : entry.getKey() == null) {
                Object obj3 = this.f17964h;
                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.f17962f;
    }

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

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

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

    public final String toString() {
        String strValueOf = String.valueOf(this.f17962f);
        String strValueOf2 = String.valueOf(this.f17964h);
        return defpackage.e.p(new StringBuilder(strValueOf.length() + 1 + strValueOf2.length()), strValueOf, "=", strValueOf2);
    }

    public w92(boolean z10, w92 w92Var, Object obj, w92 w92Var2, w92 w92Var3) {
        this.f17957a = w92Var;
        this.f17962f = obj;
        this.f17963g = z10;
        this.f17965i = 1;
        this.f17960d = w92Var2;
        this.f17961e = w92Var3;
        w92Var3.f17960d = this;
        w92Var2.f17961e = this;
    }
}
