public class SpellCheckResponse extends Object
Modifier and Type | Class and Description |
---|---|
static class |
SpellCheckResponse.Suggestion
Information about a suggestion made for possible correct spelled version of a search term.
|
Constructor and Description |
---|
SpellCheckResponse() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
SpellCheckResponse.Suggestion |
getSuggestion(String token) |
Map<String,SpellCheckResponse.Suggestion> |
getSuggestions() |
int |
hashCode() |
boolean |
isCorrectlySpelled() |
void |
setCorrectlySpelled(boolean correctlySpelled)
Sets the misspelling flag.
|
void |
setSuggestions(Map<String,SpellCheckResponse.Suggestion> suggestions)
Sets the suggestion map.
|
String |
toString() |
public SpellCheckResponse()
public boolean isCorrectlySpelled()
public void setCorrectlySpelled(boolean correctlySpelled)
public Map<String,SpellCheckResponse.Suggestion> getSuggestions()
public SpellCheckResponse.Suggestion getSuggestion(String token)
token
- correction of a search termpublic void setSuggestions(Map<String,SpellCheckResponse.Suggestion> suggestions)
Copyright © 2024 Global Biodiversity Information Facility (GBIF). All rights reserved.