question: build a hostandport instance from separate host and port values . note : non-bracketed ipv6 literals are allowed . use #requirebracketsforipv6 to prohibit these . concode_field_sep long serialVersionUID concode_elem_sep int port concode_elem_sep boolean hasBracketlessColons concode_elem_sep int NO_PORT concode_elem_sep String host concode_field_sep HostAndPort withDefaultPort concode_elem_sep String getHostText concode_elem_sep HostAndPort requireBracketsForIPv6 concode_elem_sep String[] getHostAndPortFromBracketedHost concode_elem_sep int getPortOrDefault concode_elem_sep boolean hasPort concode_elem_sep int getPort concode_elem_sep int hashCode concode_elem_sep boolean equals concode_elem_sep HostAndPort fromHost concode_elem_sep String toString concode_elem_sep HostAndPort fromString concode_elem_sep boolean isValidPort
target: HostAndPort function ( String arg0 , int arg1 ) { checkArgument ( isValidPort ( arg1 ) , "srini_string" , arg1 ) ; HostAndPort loc0 = fromString ( arg0 ) ; checkArgument ( ! loc0 . hasPort ( ) , "srini_string" , arg0 ) ; return new HostAndPort ( loc0 . arg0 , arg1 , loc0 . hasBracketlessColons ) ; }