package o;

import java.util.Map;

/* compiled from: r8-map-id-3b7cc9102578c509342fa2f0fabed2bfc72239cd258d579fc679bfcbc198b048 */
/* renamed from: o.uN, reason: case insensitive filesystem */
/* loaded from: classes.dex */
public final class C2613uN implements Map.Entry, InterfaceC2989yJ {
    public final C2803wN l;
    public final int m;

    public C2613uN(C2803wN c2803wN, int i) {
        this.l = c2803wN;
        this.m = i;
    }

    @Override // java.util.Map.Entry
    public final boolean equals(Object obj) {
        if (!(obj instanceof Map.Entry)) {
            return false;
        }
        Map.Entry entry = (Map.Entry) obj;
        return F3.c(entry.getKey(), getKey()) && F3.c(entry.getValue(), getValue());
    }

    @Override // java.util.Map.Entry
    public final Object getKey() {
        return this.l.l[this.m];
    }

    @Override // java.util.Map.Entry
    public final Object getValue() {
        return this.l.m[this.m];
    }

    @Override // java.util.Map.Entry
    public final int hashCode() {
        Object key = getKey();
        int iHashCode = key != null ? key.hashCode() : 0;
        Object value = getValue();
        return iHashCode ^ (value != null ? value.hashCode() : 0);
    }

    @Override // java.util.Map.Entry
    public final Object setValue(Object obj) {
        C2803wN c2803wN = this.l;
        c2803wN.c();
        Object[] objArr = c2803wN.m;
        if (objArr == null) {
            int length = c2803wN.l.length;
            if (length < 0) {
                throw new IllegalArgumentException("capacity must be non-negative.");
            }
            objArr = new Object[length];
            c2803wN.m = objArr;
        }
        int i = this.m;
        Object obj2 = objArr[i];
        objArr[i] = obj;
        return obj2;
    }

    public final String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getKey());
        sb.append('=');
        sb.append(getValue());
        return sb.toString();
    }
}
