com.groupdocs.search

Class StopWordDictionary

    • Method Detail

      • getCount

        public final int getCount()

        Gets the number of stop words contained in the StopWordDictionary.

        Value: The number of stop words in the dictionary.
      • addRange

        public final void addRange(Iterable<String> words)

        Adds the specified collection of words to this instance of the StopWordDictionary.

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

        public final void removeRange(Iterable<String> words)

        Removes the specified collection of words from this instance of the StopWordDictionary.

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

        public final boolean contains(String word)

        Determines whether a StopWordDictionary object contains the specified word.

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

        public final void clear()

        Removes all words from a StopWordDictionary object.

      • import_

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

        Imports the stop word collection from a file with the specified name. One line corresponds to one word.

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

        public final void importDictionary(String fileName)

        Imports the stop word collection from a file with the specified name. One line corresponds to one word.

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

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

        Exports the stop word 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 stop word 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<String> iterator()

        Returns an enumerator that iterates through the collection.

        Specified by:
        iterator in interface Iterable<String>
        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.