public abstract class SpellingCorrector extends DictionaryBase
Represents a spelling corrector for terms in a query.
Learn more
Modifier | Constructor and Description |
---|---|
protected |
SpellingCorrector(EventHub events,
String filePath,
boolean saveOnChange)
Initializes a new instance of the
SpellingCorrector class. |
Modifier and Type | Method and Description |
---|---|
abstract void |
addRange(Iterable<String> words)
Adds the specified collection of words to this instance of the
SpellingCorrector . |
abstract void |
addRange(String[] words)
Adds the specified collection of words to this instance of the
SpellingCorrector . |
abstract void |
clear()
Removes all words from a
SpellingCorrector object. |
abstract int |
getCount()
Gets the number of words contained in this
SpellingCorrector . |
abstract String[] |
getWords()
Gets the collection of words that is currently contained in this
SpellingCorrector . |
export, exportDictionary, getFilePath, import_, importDictionary, load, loadDefault, merge, notifyChanged, save
public abstract int getCount()
Gets the number of words contained in this SpellingCorrector
.
SpellingCorrector
.public abstract String[] getWords()
Gets the collection of words that is currently contained in this SpellingCorrector
.
public abstract void addRange(Iterable<String> words)
Adds the specified collection of words to this instance of the SpellingCorrector
.
words
- The collection of words to add to the dictionary.public abstract void addRange(String[] words)
Adds the specified collection of words to this instance of the SpellingCorrector
.
words
- The collection of words to add to the dictionary.public abstract void clear()
Removes all words from a SpellingCorrector
object.