Class HostAndPort
- java.lang.Object
-
- zipkin2.storage.cassandra.internal.HostAndPort
-
public final class HostAndPort extends java.lang.Object
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object o)
static HostAndPort
fromString(java.lang.String hostPort, int defaultPort)
Constructs a host-port pair from the given string, defaulting to the indicated port if absentjava.lang.String
getHost()
Returns the unvalidated hostname or IP literalint
getPort()
Returns the portint
hashCode()
java.lang.String
toString()
-
-
-
Method Detail
-
getHost
public java.lang.String getHost()
Returns the unvalidated hostname or IP literal
-
getPort
public int getPort()
Returns the port
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
fromString
public static HostAndPort fromString(java.lang.String hostPort, int defaultPort)
Constructs a host-port pair from the given string, defaulting to the indicated port if absent
-
-