Builder addQueryParameter(String name,String value){
  if (name == null)   throw new IllegalArgumentException("name == null");
  if (encodedQueryNamesAndValues == null)   encodedQueryNamesAndValues=new ArrayList<>();
  encodedQueryNamesAndValues.add(canonicalize(name,QUERY_COMPONENT_ENCODE_SET,false,true));
  encodedQueryNamesAndValues.add(value != null ? canonicalize(value,QUERY_COMPONENT_ENCODE_SET,false,true) : null);
  return this;
}

Builder addQueryParameter ( String name , String value ) { if ( name == null ) throw new IllegalArgumentException ( "name == null" ) ; if ( encodedQueryNamesAndValues == null ) encodedQueryNamesAndValues = new ArrayList < > ( ) ; encodedQueryNamesAndValues . add ( canonicalize ( name , QUERY_COMPONENT_ENCODE_SET , false , true ) ) ; encodedQueryNamesAndValues . add ( value != null ? canonicalize ( value , QUERY_COMPONENT_ENCODE_SET , false , true ) : null ) ; return this ; }
encodes the query parameter using utf - 8 and adds it to this url ' s query string .
