All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.factual.driver.MatchQuery Maven / Gradle / Ivy

The newest version!
package com.factual.driver;

import java.util.Map;

public class MatchQuery {

  /**
   * Holds all parameters.
   */
  private final Parameters queryParams = new Parameters();

  public MatchQuery add(String key, Object val) {
    queryParams.setJsonMapParam(Constants.RESOLVE_VALUES, key, val);
    return this;
  }

  protected Map toUrlParams() {
    return queryParams.toUrlParams();
  }

  protected String toUrlQuery() {
    return UrlUtil.toUrlQuery(toUrlParams());
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy