package d1;

import java.util.Iterator;

/* loaded from: classes.dex */
public final class j extends sm.h {

    /* renamed from: p, reason: collision with root package name */
    private final f f15747p;

    public j(f fVar) {
        this.f15747p = fVar;
    }

    @Override // java.util.AbstractCollection, java.util.Collection, java.util.Set
    public boolean add(Object obj) {
        throw new UnsupportedOperationException();
    }

    @Override // java.util.AbstractCollection, java.util.Collection, java.util.Set
    public void clear() {
        this.f15747p.clear();
    }

    @Override // java.util.AbstractCollection, java.util.Collection, java.util.Set
    public boolean contains(Object obj) {
        return this.f15747p.containsKey(obj);
    }

    @Override // sm.h
    public int e() {
        return this.f15747p.size();
    }

    @Override // java.util.AbstractCollection, java.util.Collection, java.lang.Iterable, java.util.Set
    public Iterator iterator() {
        return new k(this.f15747p);
    }

    @Override // java.util.AbstractCollection, java.util.Collection, java.util.Set
    public boolean remove(Object obj) {
        if (!this.f15747p.containsKey(obj)) {
            return false;
        }
        this.f15747p.remove(obj);
        return true;
    }
}
