public static HostAndPort fromHost ( String host ) { HostAndPort parsedHost = fromString ( host ) ; checkArgument ( ! parsedHost . hasPort ( ) , "Host has a port: %s" , host ) ; return parsedHost ; }
Build a HostAndPort instance from a host only .