package com.google.protobuf;

import java.util.Map;

/* JADX INFO: loaded from: classes3.dex */
public final class P0 implements Map.Entry, Comparable {

    /* JADX INFO: renamed from: a, reason: collision with root package name */
    public final Comparable f14222a;

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

    /* JADX INFO: renamed from: c, reason: collision with root package name */
    public final /* synthetic */ L0 f14224c;

    public P0(L0 l02, Comparable comparable, Object obj) {
        this.f14224c = l02;
        this.f14222a = comparable;
        this.f14223b = obj;
    }

    @Override // java.lang.Comparable
    public final int compareTo(Object obj) {
        return this.f14222a.compareTo(((P0) obj).f14222a);
    }

    @Override // java.util.Map.Entry
    public final boolean equals(Object obj) {
        if (obj != this) {
            if (obj instanceof Map.Entry) {
                Map.Entry entry = (Map.Entry) obj;
                Object key = entry.getKey();
                Comparable comparable = this.f14222a;
                if (comparable == null ? key == null : comparable.equals(key)) {
                    Object obj2 = this.f14223b;
                    Object value = entry.getValue();
                    if (obj2 == null ? value == null : obj2.equals(value)) {
                    }
                }
            }
            return false;
        }
        return true;
    }

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

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

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

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

    public final String toString() {
        return this.f14222a + "=" + this.f14223b;
    }
}
