title: Replace query parameters in Uri.Builder in Android?
body: <p>I'm passing around a Uri.Builder object as a mechanism for subclasses to fill in whatever parameters necessary into a Uri before it is executed in <strong>Android</strong>.</p>
  
  <p>Problem is, one of the parameters that the base class adds using <code>builder.appendQueryParameter("q",searchPhrase);</code> needs to be replaced in the sub-class, but I can only find <code>appendQueryParameter()</code>, there is no replace or set method. <code>appendQueryParameter()</code> with the same parameter name adds another instance of the parameter, doesn't replace it.</p>
  
  <p>Should I give up and try another way? Or is there a way to replace query parameters that I haven't found yet?</p>