public abstract class SynonymDictionary extends DictionaryBase implements Iterable<String>
Modifier | Constructor and Description |
---|---|
protected |
SynonymDictionary(EventHub events,
String filePath,
boolean saveOnChange)
Initializes a new instance of the
SynonymDictionary class. |
Modifier and Type | Method and Description |
---|---|
abstract void |
addRange(Iterable<String[]> synonyms)
Adds the specified collection of synonym groups to this instance of the
SynonymDictionary . |
abstract void |
addRange(String[][] synonyms)
Adds the specified collection of synonym groups to this instance of the
SynonymDictionary . |
abstract void |
clear()
Removes all words from this
SynonymDictionary object. |
abstract int |
getCount()
Gets the number of words contained in this
SynonymDictionary . |
abstract Iterator<String> |
iterator()
Returns an iterator that iterates through the collection.
|
export, exportDictionary, getFilePath, import_, importDictionary, load, loadDefault, merge, notifyChanged, save
public abstract int getCount()
Gets the number of words contained in this SynonymDictionary
.
SynonymDictionary
.public abstract void addRange(Iterable<String[]> synonyms)
Adds the specified collection of synonym groups to this instance of the SynonymDictionary
.
synonyms
- The collection of synonym groups to add to the dictionary.public abstract void addRange(String[][] synonyms)
Adds the specified collection of synonym groups to this instance of the SynonymDictionary
.
synonyms
- The collection of synonym groups to add to the dictionary.public abstract void clear()
Removes all words from this SynonymDictionary
object.
Copyright © 2020. All rights reserved.