Package com.sas.services.connection
Class HostPortPair
java.lang.Object
com.sas.services.connection.HostPortPair
- All Implemented Interfaces:
Serializable
public class HostPortPair
extends Object
implements Serializable
Encapsulates the host and port information for a single server instance.
- Since:
- 9.4
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Constructor Details
-
HostPortPair
public HostPortPair(String host, int port)
-
-
Method Details
-
getHost
public String getHost() -
getPort
public int getPort() -
hashCode
public int hashCode()- Overrides:
hashCodein classObject
-
equals
public boolean equals(Object obj) - Overrides:
equalsin classObject
-
toString
public String toString()- Overrides:
toStringin classObject
-