Modifier and Type | Class and Description |
---|---|
static class |
Proxy.Type
Represents the proxy type.
|
Constructor and Description |
---|
Proxy(Proxy.Type type,
SocketAddress address)
Creates a new
Proxy object. |
Modifier and Type | Method and Description |
---|---|
SocketAddress |
address()
Returns the socket address for this proxy object.
|
boolean |
equals(Object obj)
Compares the given object with this object.
|
int |
hashCode()
Returns the hashcode for this
Proxy object. |
String |
toString()
Returns a string representation of this
Proxy object. |
Proxy.Type |
type()
Returns the of this proxy instance.
|
public Proxy(Proxy.Type type, SocketAddress address)
Proxy
object.type
- The type for this proxyaddress
- The address of this proxypublic SocketAddress address()
public Proxy.Type type()
Proxy.Type
public final boolean equals(Object obj)
equals
in class Object
obj
- the Object to compare totrue
if both objects or equals,
false
otherwise.Object.hashCode()
public final int hashCode()
Proxy
object.hashCode
in class Object
Object.equals(Object)
,
System.identityHashCode(Object)
public String toString()
Proxy
object.toString
in class Object
Object.getClass()
,
Object.hashCode()
,
Class.getName()
,
Integer.toHexString(int)