public class HomophoneDictionary extends DictionaryBase implements Iterable<String>
Represents a dictionary of heterographic homophones.
Modifier and Type | Method and Description |
---|---|
void |
addRange(Iterable<String[]> homophones)
Adds the specified collection of homophones to this instance of the
HomophoneDictionary . |
void |
clear()
Removes all words from a
HomophoneDictionary object. |
void |
exportDictionary(String fileName)
Exports the homophone dictionary to a file with the specified name.
|
int |
getCount()
Gets the number of words contained in the
HomophoneDictionary . |
void |
importDictionary(String fileName)
Imports a homophone dictionary from the specified text file.
|
com.aspose.ms.System.Collections.IEnumerator |
iterator_Rename_Namesake()
Returns an enumerator that iterates through a collection.
|
com.aspose.ms.System.Collections.Generic.IGenericEnumerator<String> |
iterator()
Returns an enumerator that iterates through the collection.
|
public final int getCount()
Gets the number of words contained in the HomophoneDictionary
.
public final void addRange(Iterable<String[]> homophones)
Adds the specified collection of homophones to this instance of the HomophoneDictionary
.
homophones
- The collection of homophones to add to the dictionary.com.aspose.ms.System.ArgumentNullException
- Thrown when homophones
is null
.com.aspose.ms.System.ArgumentException
- Thrown when number of homophones in a group is less than 2.public final void clear()
Removes all words from a HomophoneDictionary
object.
public final void exportDictionary(String fileName)
Exports the homophone dictionary to a file with the specified name.
fileName
- The name of the text file to export to.public final void importDictionary(String fileName)
Imports a homophone dictionary from the specified text file.
fileName
- The file to import from.public final com.aspose.ms.System.Collections.Generic.IGenericEnumerator<String> iterator()
Returns an enumerator that iterates through the collection.
public final com.aspose.ms.System.Collections.IEnumerator iterator_Rename_Namesake()
Returns an enumerator that iterates through a collection.
IEnumerator
object that can be used to iterate through the collection.Copyright © 2019. All rights reserved.