package q2; import java.util.Set; /* loaded from: classes.dex */ final class p implements o2.g { /* renamed from: a, reason: collision with root package name */ private final Set f13439a; /* renamed from: b, reason: collision with root package name */ private final o f13440b; /* renamed from: c, reason: collision with root package name */ private final s f13441c; p(Set set, o oVar, s sVar) { this.f13439a = set; this.f13440b = oVar; this.f13441c = sVar; } @Override // o2.g public o2.f a(String str, Class cls, o2.b bVar, o2.e eVar) { if (this.f13439a.contains(bVar)) { return new r(this.f13440b, str, bVar, eVar, this.f13441c); } throw new IllegalArgumentException(String.format("%s is not supported byt this factory. Supported encodings are: %s.", bVar, this.f13439a)); } }