package o;

import java.util.Collection;
import java.util.List;

/* compiled from: r8-map-id-3b7cc9102578c509342fa2f0fabed2bfc72239cd258d579fc679bfcbc198b048 */
/* loaded from: classes.dex */
public final /* synthetic */ class X implements OC {
    public final /* synthetic */ int l;
    public final /* synthetic */ Collection m;

    public /* synthetic */ X(int i, Collection collection) {
        this.l = i;
        this.m = collection;
    }

    @Override // o.OC
    public final Object g(Object obj) {
        boolean zContains;
        switch (this.l) {
            case 0:
                zContains = this.m.contains(obj);
                break;
            case 1:
                zContains = this.m.contains(obj);
                break;
            default:
                zContains = ((List) obj).retainAll(this.m);
                break;
        }
        return Boolean.valueOf(zContains);
    }
}
