public class FuzzySearchResponse extends java.lang.Object implements java.io.Serializable, BatchableSearchResponse
Modifier and Type | Field and Description |
---|---|
protected ResponseError |
error
Error code and description.
|
protected FuzzySearchResult[] |
results
A portion of results of the request, as specified in the summary by
total number of results, number of results and offset.
|
protected Summary |
summary
The summary of the response.
|
Constructor and Description |
---|
FuzzySearchResponse() |
Modifier and Type | Method and Description |
---|---|
void |
accept(BatchableSearchResponseVisitor visitor) |
java.lang.String |
getErrorMessage()
The error message if applicable.
|
ImmutableList<FuzzySearchResult> |
getResults()
Get fuzzy search results
|
boolean |
hasError()
True if error occurs, false otherwise.
|
protected Summary summary
protected FuzzySearchResult[] results
protected ResponseError error
public boolean hasError()
hasError
in interface SearchResponse
true
if an error occurred, false
otherwisepublic java.lang.String getErrorMessage()
getErrorMessage
in interface SearchResponse
public ImmutableList<FuzzySearchResult> getResults()
public void accept(BatchableSearchResponseVisitor visitor)
accept
in interface com.tomtom.online.sdk.common.util.Visitable<BatchableSearchResponseVisitor>