package okhttp3.repackaged; import java.net.Proxy; import java.net.ProxySelector; import java.util.List; import javax.net.SocketFactory; import javax.net.ssl.HostnameVerifier; import javax.net.ssl.SSLSocketFactory; import okhttp3.repackaged.HttpUrl; import okhttp3.repackaged.internal.Util; /* loaded from: classes6.dex */ public final class Address { final HttpUrl agw; final Dns agx; final Authenticator agy; final CertificatePinner agz; final List connectionSpecs; final HostnameVerifier hostnameVerifier; final List protocols; final Proxy proxy; final ProxySelector proxySelector; final SocketFactory socketFactory; final SSLSocketFactory sslSocketFactory; public Address(String str, int i, Dns dns, SocketFactory socketFactory, SSLSocketFactory sSLSocketFactory, HostnameVerifier hostnameVerifier, CertificatePinner certificatePinner, Authenticator authenticator, Proxy proxy, List list, List list2, ProxySelector proxySelector) { this.agw = new HttpUrl.Builder().scheme(sSLSocketFactory != null ? "https" : "http").host(str).port(i).build(); if (dns == null) { throw new IllegalArgumentException("dns == null"); } this.agx = dns; if (socketFactory == null) { throw new IllegalArgumentException("socketFactory == null"); } this.socketFactory = socketFactory; if (authenticator == null) { throw new IllegalArgumentException("proxyAuthenticator == null"); } this.agy = authenticator; if (list == null) { throw new IllegalArgumentException("protocols == null"); } this.protocols = Util.immutableList(list); if (list2 == null) { throw new IllegalArgumentException("connectionSpecs == null"); } this.connectionSpecs = Util.immutableList(list2); if (proxySelector == null) { throw new IllegalArgumentException("proxySelector == null"); } this.proxySelector = proxySelector; this.proxy = proxy; this.sslSocketFactory = sSLSocketFactory; this.hostnameVerifier = hostnameVerifier; this.agz = certificatePinner; } public final boolean equals(Object obj) { if (!(obj instanceof Address)) { return false; } Address address = (Address) obj; return this.agw.equals(address.agw) && this.agx.equals(address.agx) && this.agy.equals(address.agy) && this.protocols.equals(address.protocols) && this.connectionSpecs.equals(address.connectionSpecs) && this.proxySelector.equals(address.proxySelector) && Util.equal(this.proxy, address.proxy) && Util.equal(this.sslSocketFactory, address.sslSocketFactory) && Util.equal(this.hostnameVerifier, address.hostnameVerifier) && Util.equal(this.agz, address.agz); } public final int hashCode() { int hashCode = this.agw.hashCode(); int hashCode2 = this.agx.hashCode(); int hashCode3 = this.agy.hashCode(); int hashCode4 = this.protocols.hashCode(); int hashCode5 = this.connectionSpecs.hashCode(); int hashCode6 = this.proxySelector.hashCode(); Proxy proxy = this.proxy; int hashCode7 = proxy != null ? proxy.hashCode() : 0; SSLSocketFactory sSLSocketFactory = this.sslSocketFactory; int hashCode8 = sSLSocketFactory != null ? sSLSocketFactory.hashCode() : 0; HostnameVerifier hostnameVerifier = this.hostnameVerifier; int hashCode9 = hostnameVerifier != null ? hostnameVerifier.hashCode() : 0; CertificatePinner certificatePinner = this.agz; return ((((((((((((((((((hashCode + 527) * 31) + hashCode2) * 31) + hashCode3) * 31) + hashCode4) * 31) + hashCode5) * 31) + hashCode6) * 31) + hashCode7) * 31) + hashCode8) * 31) + hashCode9) * 31) + (certificatePinner != null ? certificatePinner.hashCode() : 0); } public final HttpUrl url() { return this.agw; } public final SSLSocketFactory sslSocketFactory() { return this.sslSocketFactory; } public final SocketFactory socketFactory() { return this.socketFactory; } public final ProxySelector proxySelector() { return this.proxySelector; } public final Authenticator proxyAuthenticator() { return this.agy; } public final Proxy proxy() { return this.proxy; } public final List protocols() { return this.protocols; } public final HostnameVerifier hostnameVerifier() { return this.hostnameVerifier; } public final Dns dns() { return this.agx; } public final List connectionSpecs() { return this.connectionSpecs; } public final CertificatePinner certificatePinner() { return this.agz; } }