public static class SpellCheckResult.MisspelledTerm extends Object
| Constructor and Description |
|---|
MisspelledTerm(String term,
List<SpellCheckResult.Suggestion> suggestions)
Create a new misspelled term.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
int |
getSuggestionCount()
Get the number of suggestions for this term.
|
List<SpellCheckResult.Suggestion> |
getSuggestions()
Get the list of spelling suggestions.
|
String |
getTerm()
Get the misspelled term.
|
int |
hashCode() |
boolean |
hasSuggestions()
Check if there are any suggestions for this term.
|
String |
toString() |
public MisspelledTerm(String term, List<SpellCheckResult.Suggestion> suggestions)
term - the misspelled termsuggestions - the list of spelling suggestionspublic String getTerm()
public List<SpellCheckResult.Suggestion> getSuggestions()
public boolean hasSuggestions()
true if there are suggestionspublic int getSuggestionCount()
Copyright © 2026 lettuce.io. All rights reserved.