V - Value type.public static class SpellCheckResult.MisspelledTerm<V> extends Object
| Constructor and Description |
|---|
MisspelledTerm(V term,
List<SpellCheckResult.Suggestion<V>> 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<V>> |
getSuggestions()
Get the list of spelling suggestions.
|
V |
getTerm()
Get the misspelled term.
|
int |
hashCode() |
boolean |
hasSuggestions()
Check if there are any suggestions for this term.
|
String |
toString() |
public MisspelledTerm(V term, List<SpellCheckResult.Suggestion<V>> suggestions)
term - the misspelled termsuggestions - the list of spelling suggestionspublic V getTerm()
public List<SpellCheckResult.Suggestion<V>> getSuggestions()
public boolean hasSuggestions()
true if there are suggestionspublic int getSuggestionCount()
Copyright © 2025 lettuce.io. All rights reserved.