package o;

import java.util.Map;

/* compiled from: r8-map-id-3b7cc9102578c509342fa2f0fabed2bfc72239cd258d579fc679bfcbc198b048 */
/* loaded from: classes.dex */
public final class J10 extends UG {

    /* renamed from: o, reason: collision with root package name */
    public final transient SG f166o;
    public final transient Object[] p;
    public final transient int q;

    public J10(SG sg, Object[] objArr, int i) {
        this.f166o = sg;
        this.p = objArr;
        this.q = i;
    }

    @Override // o.JG
    public final int a(Object[] objArr) {
        return f().a(objArr);
    }

    @Override // o.JG, java.util.AbstractCollection, java.util.Collection, java.util.Set
    public final boolean contains(Object obj) {
        if (obj instanceof Map.Entry) {
            Map.Entry entry = (Map.Entry) obj;
            Object key = entry.getKey();
            Object value = entry.getValue();
            if (value != null && value.equals(this.f166o.get(key))) {
                return true;
            }
        }
        return false;
    }

    @Override // o.JG
    /* renamed from: e */
    public final Sh0 iterator() {
        return f().listIterator(0);
    }

    @Override // o.UG
    public final PG k() {
        return new I10(this);
    }

    @Override // java.util.AbstractCollection, java.util.Collection, java.util.Set
    public final int size() {
        return this.q;
    }
}
