public class GeometrySearchResponse extends java.lang.Object implements java.io.Serializable, BatchableSearchResponse
Modifier and Type | Field and Description |
---|---|
protected ResponseError |
error
Error code and description.
|
protected GeometrySearchResult[] |
results
Result list.
|
protected Summary |
summary
This section contains basic information about returned results.
|
Constructor and Description |
---|
GeometrySearchResponse() |
Modifier and Type | Method and Description |
---|---|
void |
accept(BatchableSearchResponseVisitor visitor) |
java.lang.String |
getErrorMessage()
The error message, as returned by the server.
|
ImmutableList<GeometrySearchResult> |
getResults() |
boolean |
hasError()
True if an error occurred, false otherwise.
|
boolean |
hasResults()
Specifies if the results where retrieved from fuzzy search request.
|
protected Summary summary
protected GeometrySearchResult[] results
protected ResponseError error
public ImmutableList<GeometrySearchResult> getResults()
public boolean hasError()
SearchResponse
hasError
in interface SearchResponse
true
if an error occurred, false
otherwisepublic java.lang.String getErrorMessage()
SearchResponse
getErrorMessage
in interface SearchResponse
public boolean hasResults()
public void accept(BatchableSearchResponseVisitor visitor)
accept
in interface com.tomtom.online.sdk.common.util.Visitable<BatchableSearchResponseVisitor>