public class StopWordDictionary extends DictionaryBase implements Iterable<String>
Represents a dictionary of stop words.
Modifier and Type | Method and Description |
---|---|
void |
addRange(Iterable<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. |
void |
export(String fileName)
Deprecated.
|
void |
exportDictionary(String fileName)
Exports the stop word dictionary to a file with the specified name.
|
int |
getCount()
Gets the number of stop words contained in the
StopWordDictionary . |
void |
import_(String fileName)
Deprecated.
|
void |
importDictionary(String fileName)
Imports the stop word collection from a file with the specified name.
|
com.aspose.ms.System.Collections.IEnumerator |
iterator_Rename_Namesake()
Returns an enumerator that iterates through a collection.
|
com.aspose.ms.System.Collections.Generic.IGenericEnumerator<String> |
iterator()
Returns an enumerator that iterates through the collection.
|
void |
removeRange(Iterable<String> words)
Removes the specified collection of words from this instance of the
StopWordDictionary . |
public final int getCount()
Gets the number of stop words contained in the StopWordDictionary
.
public final void addRange(Iterable<String> words)
Adds the specified collection of words to this instance of the StopWordDictionary
.
words
- The collection of words to add to the dictionary.public final void removeRange(Iterable<String> words)
Removes the specified collection of words from this instance of the StopWordDictionary
.
words
- The collection of words to remove.public final boolean contains(String word)
Determines whether a 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
.public final void clear()
Removes all words from a StopWordDictionary
object.
@Deprecated public final void import_(String fileName)
Imports the stop word collection from a file with the specified name. One line corresponds to one word.
fileName
- The name of the text file to import from.public final void importDictionary(String fileName)
Imports the stop word collection from a file with the specified name. One line corresponds to one word.
fileName
- The name of the text file to import from.@Deprecated public final void export(String fileName)
Exports the stop word dictionary to a file with the specified name.
fileName
- The name of the text file to export to.public final void exportDictionary(String fileName)
Exports the stop word dictionary to a file with the specified name.
fileName
- The name of the text file to export to.public final com.aspose.ms.System.Collections.Generic.IGenericEnumerator<String> iterator()
Returns an enumerator that iterates through the collection.
public final com.aspose.ms.System.Collections.IEnumerator iterator_Rename_Namesake()
Returns an enumerator that iterates through a collection.
IEnumerator
object that can be used to iterate through the collection.Copyright © 2018. All rights reserved.