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 boolean
equals(Object o)
List<String>
getAlternatives()
int
getNumFound()
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.String
toString()
-
-
-
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.
-
-