public enum EnglishDictionary extends java.lang.Enum<EnglishDictionary> implements Dictionary
| Enum Constant and Description |
|---|
CONCISE
A concise dictionary of common terms in English.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
contains(java.lang.String s)
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 EnglishDictionary |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static EnglishDictionary[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final EnglishDictionary CONCISE
public static EnglishDictionary[] values()
for (EnglishDictionary c : EnglishDictionary.values()) System.out.println(c);
public static EnglishDictionary 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 s)
Dictionarycontains in interface Dictionarypublic int size()
Dictionarysize in interface Dictionarypublic java.util.Iterator<java.lang.String> iterator()
Dictionaryiterator in interface Dictionary