com.groupdocs.search

Class Alphabet

    • Method Detail

      • getCount

        public final int getCount()

        Gets the number of characters contained in the Alphabet.

        Value: The number of characters in the dictionary.
      • addRange

        public final void addRange(Iterable<Character> characters)

        Adds the specified collection of characters to this instance of the Alphabet.

        Parameters:
        characters - The collection of characters to add to the dictionary.
      • removeRange

        public final void removeRange(Iterable<Character> characters)

        Removes the specified collection of characters from this instance of the Alphabet.

        Parameters:
        characters - The collection of characters to remove.
      • contains

        public final boolean contains(char character)

        Determines whether a Alphabet object contains the specified character.

        Parameters:
        character - The character to locate in the Alphabet object.
        Returns:
        true if the Alphabet object contains the specified character; otherwise, false.
      • clear

        public final void clear()

        Removes all characters from a Alphabet object.

      • import_

        @Deprecated
        public final void import_(String fileName)
        Deprecated. 

        Imports the character collection from a file with the specified name.

        Parameters:
        fileName - The name of the text file to import from.
      • importDictionary

        public final void importDictionary(String fileName)

        Imports the character collection from a file with the specified name.

        Parameters:
        fileName - The name of the text file to import from.
      • export

        @Deprecated
        public final void export(String fileName)
        Deprecated. 

        Exports the character dictionary to a file with the specified name.

        Parameters:
        fileName - The name of the text file to export to.
      • exportDictionary

        public final void exportDictionary(String fileName)

        Exports the character dictionary to a file with the specified name.

        Parameters:
        fileName - The name of the text file to export to.
      • iterator

        public final com.aspose.ms.System.Collections.Generic.IGenericEnumerator<Character> iterator()

        Returns an enumerator that iterates through the collection.

        Specified by:
        iterator in interface Iterable<Character>
        Returns:
        An enumerator that can be used to iterate through the collection.
      • iterator_Rename_Namesake

        public final com.aspose.ms.System.Collections.IEnumerator iterator_Rename_Namesake()

        Returns an enumerator that iterates through a collection.

        Returns:
        An IEnumerator object that can be used to iterate through the collection.