com.groupdocs.search.dictionaries

Class StopWordDictionary

    • Constructor Detail

      • StopWordDictionary

        protected StopWordDictionary(EventHub events,
                          String filePath,
                          boolean saveOnChange)

        Initializes a new instance of the StopWordDictionary class.

        Parameters:
        events - The event hub.
        filePath - The file name.
        saveOnChange - The save on change flag.
    • Method Detail

      • getCount

        public abstract int getCount()

        Gets the number of stop words contained in the StopWordDictionary.

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

        public abstract 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.
      • addRange

        public abstract void addRange(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 abstract 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.
      • removeRange

        public abstract void removeRange(String[] words)

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

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

        public abstract 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 abstract void clear()

        Removes all words from a StopWordDictionary object.

      • iterator

        public abstract Iterator<String> iterator()

        Returns an iterator that iterates through the collection.

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