public abstract class Alphabet extends DictionaryBase implements Iterable<Character>
Learn more
ErrorOccurred
Modifier | Constructor and Description |
---|---|
protected |
Alphabet(String filePath,
boolean saveOnChange)
Initializes a new instance of the
Alphabet class. |
Modifier and Type | Method and Description |
---|---|
abstract void |
clear()
Sets the
CharacterType.Separator type for all characters in this Alphabet . |
abstract CharacterType |
getCharacterType(char character)
Gets a type of a character.
|
abstract int |
getCount()
Gets the number of characters contained in the
Alphabet . |
abstract Iterator<Character> |
iterator()
Returns an iterator that iterates through the collection.
|
abstract void |
setRange(char[] characters,
CharacterType type)
Sets the type for each character of the specified collection in this instance of the
Alphabet . |
copyFrom, export, exportDictionary, getFilePath, getFilePathStatic, getStandardFileName, getStandardFileNameStatic, import_, importDictionary, load, loadDefault, loadInternalStatic, merge, mergeInternalStatic, notifyChanged, save, setFilePath
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
forEach, spliterator
protected Alphabet(String filePath, boolean saveOnChange)
Initializes a new instance of the Alphabet
class.
filePath
- The file name.saveOnChange
- The save on change flag.public abstract CharacterType getCharacterType(char character)
Gets a type of a character.
character
- The character to get a type.public abstract int getCount()
Gets the number of characters contained in the Alphabet
.
public abstract void setRange(char[] characters, CharacterType type)
Sets the type for each character of the specified collection in this instance of the Alphabet
.
characters
- The collection of characters to set the type.type
- The character type.public abstract void clear()
Sets the CharacterType.Separator
type for all characters in this Alphabet
.