2021-08-09 22:50:52 +00:00
|
|
|
package f0;
|
|
|
|
|
|
|
|
import com.adjust.sdk.Constants;
|
|
|
|
import com.discord.widgets.chat.input.MentionUtilsKt;
|
|
|
|
import d0.g0.t;
|
|
|
|
import d0.z.d.m;
|
2021-08-18 07:29:27 +00:00
|
|
|
import f0.e0.c;
|
2021-08-09 22:50:52 +00:00
|
|
|
import f0.w;
|
|
|
|
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;
|
|
|
|
/* compiled from: Address.kt */
|
|
|
|
public final class a {
|
|
|
|
public final w a;
|
|
|
|
public final List<y> b;
|
|
|
|
|
|
|
|
/* renamed from: c reason: collision with root package name */
|
2021-08-19 17:35:23 +00:00
|
|
|
public final List<m> f2755c;
|
2021-08-09 22:50:52 +00:00
|
|
|
public final s d;
|
|
|
|
public final SocketFactory e;
|
|
|
|
public final SSLSocketFactory f;
|
|
|
|
public final HostnameVerifier g;
|
|
|
|
public final g h;
|
|
|
|
public final c i;
|
|
|
|
public final Proxy j;
|
|
|
|
public final ProxySelector k;
|
|
|
|
|
|
|
|
public a(String str, int i, s sVar, SocketFactory socketFactory, SSLSocketFactory sSLSocketFactory, HostnameVerifier hostnameVerifier, g gVar, c cVar, Proxy proxy, List<? extends y> list, List<m> list2, ProxySelector proxySelector) {
|
|
|
|
m.checkParameterIsNotNull(str, "uriHost");
|
|
|
|
m.checkParameterIsNotNull(sVar, "dns");
|
|
|
|
m.checkParameterIsNotNull(socketFactory, "socketFactory");
|
|
|
|
m.checkParameterIsNotNull(cVar, "proxyAuthenticator");
|
|
|
|
m.checkParameterIsNotNull(list, "protocols");
|
|
|
|
m.checkParameterIsNotNull(list2, "connectionSpecs");
|
|
|
|
m.checkParameterIsNotNull(proxySelector, "proxySelector");
|
|
|
|
this.d = sVar;
|
|
|
|
this.e = socketFactory;
|
|
|
|
this.f = sSLSocketFactory;
|
|
|
|
this.g = hostnameVerifier;
|
|
|
|
this.h = gVar;
|
|
|
|
this.i = cVar;
|
|
|
|
this.j = proxy;
|
|
|
|
this.k = proxySelector;
|
|
|
|
w.a aVar = new w.a();
|
|
|
|
String str2 = sSLSocketFactory != null ? Constants.SCHEME : "http";
|
|
|
|
m.checkParameterIsNotNull(str2, "scheme");
|
|
|
|
boolean z2 = true;
|
|
|
|
if (t.equals(str2, "http", true)) {
|
|
|
|
aVar.b = "http";
|
|
|
|
} else if (t.equals(str2, Constants.SCHEME, true)) {
|
|
|
|
aVar.b = Constants.SCHEME;
|
|
|
|
} else {
|
|
|
|
throw new IllegalArgumentException(c.d.b.a.a.s("unexpected scheme: ", str2));
|
|
|
|
}
|
|
|
|
m.checkParameterIsNotNull(str, "host");
|
|
|
|
String c02 = c.q.a.k.a.c0(w.b.d(w.b, str, 0, 0, false, 7));
|
|
|
|
if (c02 != null) {
|
|
|
|
aVar.e = c02;
|
|
|
|
if ((1 > i || 65535 < i) ? false : z2) {
|
|
|
|
aVar.f = i;
|
|
|
|
this.a = aVar.b();
|
|
|
|
this.b = c.z(list);
|
2021-08-19 17:35:23 +00:00
|
|
|
this.f2755c = c.z(list2);
|
2021-08-09 22:50:52 +00:00
|
|
|
return;
|
|
|
|
}
|
|
|
|
throw new IllegalArgumentException(c.d.b.a.a.j("unexpected port: ", i).toString());
|
|
|
|
}
|
|
|
|
throw new IllegalArgumentException(c.d.b.a.a.s("unexpected host: ", str));
|
|
|
|
}
|
|
|
|
|
|
|
|
public final boolean a(a aVar) {
|
|
|
|
m.checkParameterIsNotNull(aVar, "that");
|
2021-08-19 17:35:23 +00:00
|
|
|
return m.areEqual(this.d, aVar.d) && m.areEqual(this.i, aVar.i) && m.areEqual(this.b, aVar.b) && m.areEqual(this.f2755c, aVar.f2755c) && m.areEqual(this.k, aVar.k) && m.areEqual(this.j, aVar.j) && m.areEqual(this.f, aVar.f) && m.areEqual(this.g, aVar.g) && m.areEqual(this.h, aVar.h) && this.a.h == aVar.a.h;
|
2021-08-09 22:50:52 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
public boolean equals(Object obj) {
|
|
|
|
if (obj instanceof a) {
|
|
|
|
a aVar = (a) obj;
|
|
|
|
if (m.areEqual(this.a, aVar.a) && a(aVar)) {
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
|
|
|
public int hashCode() {
|
|
|
|
int hashCode = this.d.hashCode();
|
|
|
|
int hashCode2 = this.i.hashCode();
|
|
|
|
int hashCode3 = this.b.hashCode();
|
2021-08-19 17:35:23 +00:00
|
|
|
int hashCode4 = this.f2755c.hashCode();
|
2021-08-09 22:50:52 +00:00
|
|
|
int hashCode5 = this.k.hashCode();
|
|
|
|
int hashCode6 = Objects.hashCode(this.j);
|
|
|
|
int hashCode7 = Objects.hashCode(this.f);
|
|
|
|
int hashCode8 = Objects.hashCode(this.g);
|
|
|
|
return Objects.hashCode(this.h) + ((hashCode8 + ((hashCode7 + ((hashCode6 + ((hashCode5 + ((hashCode4 + ((hashCode3 + ((hashCode2 + ((hashCode + ((this.a.hashCode() + 527) * 31)) * 31)) * 31)) * 31)) * 31)) * 31)) * 31)) * 31)) * 31);
|
|
|
|
}
|
|
|
|
|
|
|
|
public String toString() {
|
|
|
|
Object obj;
|
|
|
|
StringBuilder sb;
|
2021-08-18 07:29:27 +00:00
|
|
|
StringBuilder L = c.d.b.a.a.L("Address{");
|
|
|
|
L.append(this.a.g);
|
|
|
|
L.append(MentionUtilsKt.EMOJIS_AND_STICKERS_CHAR);
|
|
|
|
L.append(this.a.h);
|
|
|
|
L.append(", ");
|
2021-08-09 22:50:52 +00:00
|
|
|
if (this.j != null) {
|
2021-08-18 07:29:27 +00:00
|
|
|
sb = c.d.b.a.a.L("proxy=");
|
2021-08-09 22:50:52 +00:00
|
|
|
obj = this.j;
|
|
|
|
} else {
|
2021-08-18 07:29:27 +00:00
|
|
|
sb = c.d.b.a.a.L("proxySelector=");
|
2021-08-09 22:50:52 +00:00
|
|
|
obj = this.k;
|
|
|
|
}
|
|
|
|
sb.append(obj);
|
2021-08-18 07:29:27 +00:00
|
|
|
L.append(sb.toString());
|
|
|
|
L.append("}");
|
|
|
|
return L.toString();
|
2021-08-09 22:50:52 +00:00
|
|
|
}
|
|
|
|
}
|