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

import java.util.Map;
import java.util.Objects;

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

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

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

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

    public lc2(kc2 kc2Var, Comparable comparable, Object obj) {
        Objects.requireNonNull(kc2Var);
        this.f13633c = kc2Var;
        this.f13631a = comparable;
        this.f13632b = obj;
    }

    @Override // java.lang.Comparable
    public final /* bridge */ /* synthetic */ int compareTo(Object obj) {
        return this.f13631a.compareTo(((lc2) obj).f13631a);
    }

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

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

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

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

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

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