public class UserAndHostAndPort
extends java.lang.Object
implements java.io.Serializable
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
static UserAndHostAndPort |
fromParts(java.lang.String user,
HostAndPort hostAndPort) |
static UserAndHostAndPort |
fromParts(java.lang.String user,
java.lang.String host,
<any> port) |
static UserAndHostAndPort |
fromParts(java.lang.String user,
java.lang.String host,
int port) |
static UserAndHostAndPort |
fromString(java.lang.String str)
Split a string of the form myuser@myhost:1234 into a user, host and port.
|
HostAndPort |
getHostAndPort() |
java.lang.String |
getUser() |
int |
hashCode() |
java.lang.String |
toString() |
public static UserAndHostAndPort fromParts(java.lang.String user, java.lang.String host, int port)
public static UserAndHostAndPort fromParts(java.lang.String user, java.lang.String host, <any> port)
public static UserAndHostAndPort fromParts(java.lang.String user, HostAndPort hostAndPort)
public static UserAndHostAndPort fromString(java.lang.String str)
str
- The input string to parse.java.lang.IllegalArgumentException
- if nothing meaningful could be parsed.public java.lang.String getUser()
public HostAndPort getHostAndPort()
public java.lang.String toString()
toString
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object