public interface AliasDictionary extends DictionaryBase, Iterable<String>
Learn more
| Modifier and Type | Method and Description |
|---|---|
void |
add(String alias,
String text)
Adds the specified pair of alias and associated text to this instance of the
AliasDictionary. |
void |
addRange(AliasReplacementPair[] pairs)
Adds the specified collection of alias/replacement pairs to this instance of the
AliasDictionary. |
void |
addRange(Iterable<AliasReplacementPair> pairs)
Adds the specified collection of alias/replacement pairs to this instance of the
AliasDictionary. |
void |
clear()
Removes all aliases from a
AliasDictionary object. |
boolean |
contains(String alias)
Determines whether an
AliasDictionary object contains the specified alias. |
int |
getCount()
Gets the number of aliases contained in the
AliasDictionary. |
String |
getText(String alias)
Gets a text that is associated with the specified alias.
|
Iterator<String> |
iterator()
Returns an iterator that iterates through the collection.
|
boolean |
remove(String alias)
Removes the specified alias from an
AliasDictionary object. |
exportDictionary, getDictionaryType, importDictionaryforEach, spliteratorvoid add(String alias, String text)
AliasDictionary.alias - The alias to add to the dictionary.text - The text to be associated with the alias.void addRange(AliasReplacementPair[] pairs)
AliasDictionary.pairs - The collection of alias/replacement pairs to add to the dictionary.void addRange(Iterable<AliasReplacementPair> pairs)
AliasDictionary.pairs - The collection of alias/replacement pairs to add to the dictionary.void clear()
AliasDictionary object.clear in interface DictionaryBaseboolean contains(String alias)
AliasDictionary object contains the specified alias.alias - The alias to locate in the AliasDictionary object.true if the AliasDictionary object contains the specified alias; otherwise, false.int getCount()
AliasDictionary.AliasDictionary.String getText(String alias)
alias - The alias to locate in the AliasDictionary object.null.boolean remove(String alias)
AliasDictionary object.alias - The alias to remove.true if the alias is successfully found and removed.
This method returns false if the alias is not found in the AliasDictionary object.Copyright © 2026. All rights reserved.