org.linkedin.util-core/src/main/java/org/linkedin/util/url/QueryBuilder.java
public void addQuery(Query query)
  {
    if(query == null)
      return;
    try
    {
      if(!query.getEncoding().equals(getEncoding()))
        throw new RuntimeException("TODO");

      addQuery(query.getQuery(), false);
    }
    catch(URISyntaxException e)
    {
      // shouldn't happen since a query is already properly formatted
      throw new RuntimeException(e);
    }
  }
public void addQuery(Query query)
  {
    if(query == null)
      return;
    try
    {
      if(!query.getEncoding().equals(getEncoding()))
        throw new RuntimeException("TODO");

      addQuery(query.getQuery(), false);
    }
    catch(URISyntaxException e)
    {
      // shouldn't happen since a query is already properly formatted
      throw new RuntimeException(e);
    }
  }
Simply adds the query provided.

@param query the query (<code>null</code> is ok)