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

import java.util.Map;

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

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

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

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

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

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

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

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

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

    public ue() {
        this.f21259f = null;
        this.f21258e = this;
        this.f21257d = 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.f21259f;
            if (obj2 != null ? obj2.equals(entry.getKey()) : entry.getKey() == null) {
                Object obj3 = this.f21260g;
                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.f21259f;
    }

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

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

    @Override // java.util.Map.Entry
    public final Object setValue(Object obj) {
        Object obj2 = this.f21260g;
        this.f21260g = obj;
        return obj2;
    }

    public final String toString() {
        return this.f21259f + "=" + this.f21260g;
    }

    public ue(ue ueVar, Object obj, ue ueVar2, ue ueVar3) {
        this.f21254a = ueVar;
        this.f21259f = obj;
        this.f21261h = 1;
        this.f21257d = ueVar2;
        this.f21258e = ueVar3;
        ueVar3.f21257d = this;
        ueVar2.f21258e = this;
    }
}
