public enum EnglishStopWords extends java.lang.Enum<EnglishStopWords> implements StopWords
| Enum Constant and Description |
|---|
COMPREHENSIVE
A very long list of stop words.
|
DEFAULT
Default stop words list.
|
GOOGLE
The stop words list used by Google.
|
MYSQL
The stop words list used by MySQL FullText feature.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
contains(java.lang.String word)
Returns true if this dictionary contains the specified word.
|
java.util.Iterator<java.lang.String> |
iterator()
Returns an iterator over the elements in this dictionary.
|
int |
size()
Returns the number of elements in this dictionary.
|
static EnglishStopWords |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static EnglishStopWords[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final EnglishStopWords DEFAULT
public static final EnglishStopWords COMPREHENSIVE
public static final EnglishStopWords GOOGLE
public static final EnglishStopWords MYSQL
public static EnglishStopWords[] values()
for (EnglishStopWords c : EnglishStopWords.values()) System.out.println(c);
public static EnglishStopWords valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is nullpublic boolean contains(java.lang.String word)
Dictionarycontains in interface Dictionarypublic int size()
Dictionarysize in interface Dictionarypublic java.util.Iterator<java.lang.String> iterator()
Dictionaryiterator in interface Dictionary