com.factual.driver.ResolveResponse 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 ResolveResponse extends ReadResponse {
public ResolveResponse(InternalResponse resp) {
super(resp);
}
public Map getResolved() {
if (isResolved())
return getData().get(0);
else
return null;
}
public boolean isResolved() {
return getData().size() > 0
&& Boolean.TRUE.equals(getData().get(0).get("resolved"));
}
}