Package com.couchbase.client.core.util
Class HostAndPort
- java.lang.Object
-
- com.couchbase.client.core.util.HostAndPort
-
public class HostAndPort extends Object
A host (hostname or IP address) and a port number.
-
-
Constructor Summary
Constructors Constructor Description HostAndPort(String host, int port)
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description booleanequals(Object o)Stringformat()inthashCode()Stringhost()Stringhostname()Deprecated.Please usehost()instead.intport()StringtoString()HostAndPortwithPort(int port)
-
-
-
Constructor Detail
-
HostAndPort
public HostAndPort(String host, int port)
-
-
Method Detail
-
hostname
@Deprecated public String hostname()
Deprecated.Please usehost()instead.
-
host
public String host()
-
port
public int port()
-
withPort
public HostAndPort withPort(int port)
-
format
public String format()
-
-