Route.java
2 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
package com.squareup.okhttp;
import java.net.InetSocketAddress;
import java.net.Proxy;
import java.net.Proxy.Type;
public final class Route
{
final Address address;
final InetSocketAddress inetSocketAddress;
final Proxy proxy;
public Route(Address paramAddress, Proxy paramProxy, InetSocketAddress paramInetSocketAddress)
{
if (paramAddress == null) {
throw new NullPointerException("address == null");
}
if (paramProxy == null) {
throw new NullPointerException("proxy == null");
}
if (paramInetSocketAddress == null) {
throw new NullPointerException("inetSocketAddress == null");
}
this.address = paramAddress;
this.proxy = paramProxy;
this.inetSocketAddress = paramInetSocketAddress;
}
public final boolean equals(Object paramObject)
{
boolean bool2 = false;
boolean bool1 = bool2;
if ((paramObject instanceof Route))
{
paramObject = (Route)paramObject;
bool1 = bool2;
if (this.address.equals(((Route)paramObject).address))
{
bool1 = bool2;
if (this.proxy.equals(((Route)paramObject).proxy))
{
bool1 = bool2;
if (this.inetSocketAddress.equals(((Route)paramObject).inetSocketAddress)) {
bool1 = true;
}
}
}
}
return bool1;
}
public final Address getAddress()
{
return this.address;
}
public final Proxy getProxy()
{
return this.proxy;
}
public final InetSocketAddress getSocketAddress()
{
return this.inetSocketAddress;
}
public final int hashCode()
{
return ((this.address.hashCode() + 527) * 31 + this.proxy.hashCode()) * 31 + this.inetSocketAddress.hashCode();
}
public final boolean requiresTunnel()
{
return (this.address.sslSocketFactory != null) && (this.proxy.type() == Proxy.Type.HTTP);
}
}
/* Location: /home/merong/decompile/hackery-dex2jar.jar!/com/squareup/okhttp/Route.class
* Java compiler version: 6 (50.0)
* JD-Core Version: 0.7.1
*/