package r3;

import java.util.Set;

/* JADX INFO: loaded from: classes.dex */
public final class o implements o3.f {

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

    /* JADX INFO: renamed from: b, reason: collision with root package name */
    public final j f23986b;

    /* JADX INFO: renamed from: c, reason: collision with root package name */
    public final q f23987c;

    public o(Set set, j jVar, q qVar) {
        this.f23985a = set;
        this.f23986b = jVar;
        this.f23987c = qVar;
    }

    public final p a(String str, o3.b bVar, o3.d dVar) {
        Set set = this.f23985a;
        if (set.contains(bVar)) {
            return new p(this.f23986b, str, bVar, dVar, this.f23987c);
        }
        throw new IllegalArgumentException(String.format("%s is not supported byt this factory. Supported encodings are: %s.", bVar, set));
    }
}
