package n9; import java.net.Proxy; import java.net.ProxySelector; import java.util.List; import java.util.Objects; import javax.net.SocketFactory; import javax.net.ssl.HostnameVerifier; import javax.net.ssl.SSLSocketFactory; import n9.y; /* loaded from: classes2.dex */ public final class a { /* renamed from: a, reason: collision with root package name */ final y f12236a; /* renamed from: b, reason: collision with root package name */ final t f12237b; /* renamed from: c, reason: collision with root package name */ final SocketFactory f12238c; /* renamed from: d, reason: collision with root package name */ final d f12239d; /* renamed from: e, reason: collision with root package name */ final List f12240e; /* renamed from: f, reason: collision with root package name */ final List f12241f; /* renamed from: g, reason: collision with root package name */ final ProxySelector f12242g; /* renamed from: h, reason: collision with root package name */ final Proxy f12243h; /* renamed from: i, reason: collision with root package name */ final SSLSocketFactory f12244i; /* renamed from: j, reason: collision with root package name */ final HostnameVerifier f12245j; /* renamed from: k, reason: collision with root package name */ final i f12246k; public a(String str, int i10, t tVar, SocketFactory socketFactory, SSLSocketFactory sSLSocketFactory, HostnameVerifier hostnameVerifier, i iVar, d dVar, Proxy proxy, List list, List list2, ProxySelector proxySelector) { this.f12236a = new y.a().r(sSLSocketFactory != null ? "https" : "http").f(str).m(i10).b(); if (tVar == null) { throw new NullPointerException("dns == null"); } this.f12237b = tVar; if (socketFactory == null) { throw new NullPointerException("socketFactory == null"); } this.f12238c = socketFactory; if (dVar == null) { throw new NullPointerException("proxyAuthenticator == null"); } this.f12239d = dVar; if (list == null) { throw new NullPointerException("protocols == null"); } this.f12240e = o9.e.t(list); if (list2 == null) { throw new NullPointerException("connectionSpecs == null"); } this.f12241f = o9.e.t(list2); if (proxySelector == null) { throw new NullPointerException("proxySelector == null"); } this.f12242g = proxySelector; this.f12243h = proxy; this.f12244i = sSLSocketFactory; this.f12245j = hostnameVerifier; this.f12246k = iVar; } public i a() { return this.f12246k; } public List b() { return this.f12241f; } public t c() { return this.f12237b; } boolean d(a aVar) { return this.f12237b.equals(aVar.f12237b) && this.f12239d.equals(aVar.f12239d) && this.f12240e.equals(aVar.f12240e) && this.f12241f.equals(aVar.f12241f) && this.f12242g.equals(aVar.f12242g) && Objects.equals(this.f12243h, aVar.f12243h) && Objects.equals(this.f12244i, aVar.f12244i) && Objects.equals(this.f12245j, aVar.f12245j) && Objects.equals(this.f12246k, aVar.f12246k) && l().y() == aVar.l().y(); } public HostnameVerifier e() { return this.f12245j; } public boolean equals(Object obj) { if (obj instanceof a) { a aVar = (a) obj; if (this.f12236a.equals(aVar.f12236a) && d(aVar)) { return true; } } return false; } public List f() { return this.f12240e; } public Proxy g() { return this.f12243h; } public d h() { return this.f12239d; } public int hashCode() { return ((((((((((((((((((527 + this.f12236a.hashCode()) * 31) + this.f12237b.hashCode()) * 31) + this.f12239d.hashCode()) * 31) + this.f12240e.hashCode()) * 31) + this.f12241f.hashCode()) * 31) + this.f12242g.hashCode()) * 31) + Objects.hashCode(this.f12243h)) * 31) + Objects.hashCode(this.f12244i)) * 31) + Objects.hashCode(this.f12245j)) * 31) + Objects.hashCode(this.f12246k); } public ProxySelector i() { return this.f12242g; } public SocketFactory j() { return this.f12238c; } public SSLSocketFactory k() { return this.f12244i; } public y l() { return this.f12236a; } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("Address{"); sb.append(this.f12236a.l()); sb.append(":"); sb.append(this.f12236a.y()); if (this.f12243h != null) { sb.append(", proxy="); sb.append(this.f12243h); } else { sb.append(", proxySelector="); sb.append(this.f12242g); } sb.append("}"); return sb.toString(); } }