public interface HomophoneDictionary extends DictionaryBase, Iterable<String>
Learn more
| Modifier and Type | Method and Description |
|---|---|
void |
addRange(Iterable<String[]> homophones)
Adds the specified collection of homophone groups to this instance of the
HomophoneDictionary. |
void |
addRange(String[][] homophones)
Adds the specified collection of homophone groups to this instance of the
HomophoneDictionary. |
void |
clear()
Removes all words from a
HomophoneDictionary object. |
String[][] |
getAllHomophoneGroups()
Gets all groups of homophones contained in this dictionary.
|
int |
getCount()
Gets the number of words contained in this
HomophoneDictionary. |
String[][] |
getHomophoneGroups(String word)
Gets all groups of homophones to which the specified word belongs.
|
String[] |
getHomophones(String word)
Gets the homophones for the specified word.
|
Iterator<String> |
iterator()
Returns an iterator that iterates through the collection.
|
exportDictionary, getDictionaryType, importDictionaryforEach, spliteratorvoid addRange(Iterable<String[]> homophones)
HomophoneDictionary.homophones - The collection of homophone groups to add to the dictionary.void addRange(String[][] homophones)
HomophoneDictionary.homophones - The collection of homophone groups to add to the dictionary.void clear()
HomophoneDictionary object.clear in interface DictionaryBaseString[][] getAllHomophoneGroups()
int getCount()
HomophoneDictionary.String[][] getHomophoneGroups(String word)
word - The word for getting groups of homophones.String[] getHomophones(String word)
word - The word to suggest the homophones.HomophoneDictionary object does not contain the specified word.Copyright © 2026. All rights reserved.