com.factual.driver.MatchQuery Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of factual-java-driver Show documentation
Show all versions of factual-java-driver Show documentation
Factual's officially supported Java driver
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());
}
}