Package org.gbif.api.model.common.search
Class SpellCheckResponse.Suggestion
- java.lang.Object
-
- org.gbif.api.model.common.search.SpellCheckResponse.Suggestion
-
- Enclosing class:
- SpellCheckResponse
public static class SpellCheckResponse.Suggestion extends Object
Information about a suggestion made for possible correct spelled version of a search term.
-
-
Constructor Summary
Constructors Constructor Description Suggestion()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)List<String>getAlternatives()intgetNumFound()inthashCode()voidsetAlternatives(List<String> alternatives)Sets the alternatives for a token.voidsetNumFound(int numFound)Sets the number of documents found for this suggestion.StringtoString()
-
-
-
Constructor Detail
-
Suggestion
public Suggestion()
-
-
Method Detail
-
getNumFound
public int getNumFound()
- Returns:
- the number of records that matched this suggestion
-
setNumFound
public void setNumFound(int numFound)
Sets the number of documents found for this suggestion.
-
getAlternatives
public List<String> getAlternatives()
- Returns:
- the alternatives corrections for this token
-
setAlternatives
public void setAlternatives(List<String> alternatives)
Sets the alternatives for a token.
-
-