Package redis.clients.jedis
Class HostAndPort
java.lang.Object
redis.clients.jedis.HostAndPort
- All Implemented Interfaces:
Serializable
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Stringprivate final intprivate static final long -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
host
-
port
private final int port
-
-
Constructor Details
-
HostAndPort
-
-
Method Details
-
getHost
-
getPort
public int getPort() -
equals
-
hashCode
public int hashCode() -
toString
-
from
Creates HostAndPort with unconverted host.- Parameters:
string- String to parse. Must be in "host:port" format. Port is mandatory.- Returns:
- parsed HostAndPort
-