public class Alphabet extends DictionaryBase implements Iterable<Character>
Represents a dictionary of characters.
Modifier and Type | Method and Description |
---|---|
void |
addRange(Iterable<Character> characters)
Adds the specified collection of characters to this instance of the
Alphabet . |
void |
clear()
Removes all characters from a
Alphabet object. |
boolean |
contains(char character)
Determines whether a
Alphabet object contains the specified character. |
void |
export(String fileName)
Deprecated.
|
void |
exportDictionary(String fileName)
Exports the character dictionary to a file with the specified name.
|
int |
getCount()
Gets the number of characters contained in the
Alphabet . |
void |
import_(String fileName)
Deprecated.
|
void |
importDictionary(String fileName)
Imports the character collection from a file with the specified name.
|
com.aspose.ms.System.Collections.IEnumerator |
iterator_Rename_Namesake()
Returns an enumerator that iterates through a collection.
|
com.aspose.ms.System.Collections.Generic.IGenericEnumerator<Character> |
iterator()
Returns an enumerator that iterates through the collection.
|
void |
removeRange(Iterable<Character> characters)
Removes the specified collection of characters from this instance of the
Alphabet . |
public final int getCount()
Gets the number of characters contained in the Alphabet
.
public final void addRange(Iterable<Character> characters)
Adds the specified collection of characters to this instance of the Alphabet
.
characters
- The collection of characters to add to the dictionary.public final void removeRange(Iterable<Character> characters)
Removes the specified collection of characters from this instance of the Alphabet
.
characters
- The collection of characters to remove.public final boolean contains(char character)
Determines whether a Alphabet
object contains the specified character.
character
- The character to locate in the Alphabet
object.true
if the Alphabet
object contains the specified character;
otherwise, false
.public final void clear()
Removes all characters from a Alphabet
object.
@Deprecated public final void import_(String fileName)
Imports the character collection from a file with the specified name.
fileName
- The name of the text file to import from.public final void importDictionary(String fileName)
Imports the character collection from a file with the specified name.
fileName
- The name of the text file to import from.@Deprecated public final void export(String fileName)
Exports the character dictionary to a file with the specified name.
fileName
- The name of the text file to export to.public final void exportDictionary(String fileName)
Exports the character dictionary to a file with the specified name.
fileName
- The name of the text file to export to.public final com.aspose.ms.System.Collections.Generic.IGenericEnumerator<Character> 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 © 2018. All rights reserved.