public interface StopWordDictionary extends DictionaryBase, Iterable<String>
Learn more
| Modifier and Type | Method and Description |
|---|---|
void |
addRange(Iterable<String> words)
Adds the specified collection of words to this instance of the
StopWordDictionary. |
void |
addRange(String[] words)
Adds the specified collection of words to this instance of the
StopWordDictionary. |
void |
clear()
Removes all words from a
StopWordDictionary object. |
boolean |
contains(String word)
Determines whether a
StopWordDictionary object contains the specified word. |
int |
getCount()
Gets the number of stop words contained in the
StopWordDictionary. |
Iterator<String> |
iterator()
Returns an iterator that iterates through the collection.
|
void |
removeRange(Iterable<String> words)
Removes the specified collection of words from this instance of the
StopWordDictionary. |
void |
removeRange(String[] words)
Removes the specified collection of words from this instance of the
StopWordDictionary. |
exportDictionary, getDictionaryType, importDictionaryforEach, spliteratorvoid addRange(Iterable<String> words)
StopWordDictionary.words - The collection of words to add to the dictionary.void addRange(String[] words)
StopWordDictionary.words - The collection of words to add to the dictionary.void clear()
StopWordDictionary object.clear in interface DictionaryBaseboolean contains(String word)
StopWordDictionary object contains the specified word.word - The word to locate in the StopWordDictionary object.true if the StopWordDictionary object contains the specified word; otherwise, false.int getCount()
StopWordDictionary.void removeRange(Iterable<String> words)
StopWordDictionary.words - The collection of words to remove.void removeRange(String[] words)
StopWordDictionary.words - The collection of words to remove.Copyright © 2026. All rights reserved.