Package org.gbif.api.model.common.search
Class SpellCheckResponse.Suggestion
java.lang.Object
org.gbif.api.model.common.search.SpellCheckResponse.Suggestion
- Enclosing class:
- SpellCheckResponse
Information about a suggestion made for possible correct spelled version of a search term.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
int
int
hashCode()
void
setAlternatives
(List<String> alternatives) Sets the alternatives for a token.void
setNumFound
(int numFound) Sets the number of documents found for this suggestion.toString()
-
Constructor Details
-
Suggestion
public Suggestion()
-
-
Method Details
-
getNumFound
- Returns:
- the number of records that matched this suggestion
-
setNumFound
Sets the number of documents found for this suggestion. -
getAlternatives
- Returns:
- the alternatives corrections for this token
-
setAlternatives
Sets the alternatives for a token. -
equals
-
hashCode
-
toString
-