public class HostPort
extends java.lang.Object
implements java.io.Serializable
AbstractSocketConnector,
AbstractSubscriptionHandlerAdapter,
Serialized Form| Constructor and Description |
|---|
HostPort(java.lang.String host,
int port)
Instantiates a new host port.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object o) |
java.lang.String |
getHost()
Gets the host.
|
int |
getPort()
Gets the port.
|
int |
hashCode() |
java.lang.String |
toString() |
public HostPort(java.lang.String host,
int port)
host - the hostport - the portpublic java.lang.String getHost()
public int getPort()
public boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Object