discord-jadx/app/src/main/java/f0/c0.java

51 lines
1.4 KiB
Java
Raw Normal View History

2021-11-08 18:25:28 +00:00
package f0;
2021-06-27 20:44:35 +00:00
2021-12-21 23:37:30 +00:00
import b.d.b.a.a;
2021-11-08 18:25:28 +00:00
import d0.z.d.m;
2021-08-24 17:45:16 +00:00
import java.net.InetSocketAddress;
import java.net.Proxy;
/* compiled from: Route.kt */
2022-03-02 20:59:20 +00:00
/* loaded from: classes3.dex */
2021-08-24 17:45:16 +00:00
public final class c0 {
public final a a;
2021-06-27 20:44:35 +00:00
2021-12-21 23:37:30 +00:00
/* renamed from: b reason: collision with root package name */
2022-03-30 16:43:10 +00:00
public final Proxy f3585b;
2021-12-21 23:37:30 +00:00
public final InetSocketAddress c;
2021-08-24 17:45:16 +00:00
public c0(a aVar, Proxy proxy, InetSocketAddress inetSocketAddress) {
m.checkParameterIsNotNull(aVar, "address");
m.checkParameterIsNotNull(proxy, "proxy");
m.checkParameterIsNotNull(inetSocketAddress, "socketAddress");
this.a = aVar;
2022-03-30 16:43:10 +00:00
this.f3585b = proxy;
2021-12-21 23:37:30 +00:00
this.c = inetSocketAddress;
2021-08-24 17:45:16 +00:00
}
public final boolean a() {
2022-03-30 16:43:10 +00:00
return this.a.f != null && this.f3585b.type() == Proxy.Type.HTTP;
2021-06-27 20:44:35 +00:00
}
2021-08-24 17:45:16 +00:00
public boolean equals(Object obj) {
if (obj instanceof c0) {
c0 c0Var = (c0) obj;
2022-03-30 16:43:10 +00:00
if (m.areEqual(c0Var.a, this.a) && m.areEqual(c0Var.f3585b, this.f3585b) && m.areEqual(c0Var.c, this.c)) {
2021-08-24 17:45:16 +00:00
return true;
}
}
return false;
2021-06-27 20:44:35 +00:00
}
2021-08-24 17:45:16 +00:00
public int hashCode() {
2022-03-30 16:43:10 +00:00
int hashCode = this.f3585b.hashCode();
2021-12-21 23:37:30 +00:00
return this.c.hashCode() + ((hashCode + ((this.a.hashCode() + 527) * 31)) * 31);
2021-06-27 20:44:35 +00:00
}
2021-08-24 17:45:16 +00:00
public String toString() {
2022-03-30 16:43:10 +00:00
StringBuilder R = a.R("Route{");
R.append(this.c);
R.append('}');
return R.toString();
2021-06-27 20:44:35 +00:00
}
}