Enum Class EnglishDictionary
- All Implemented Interfaces:
Serializable, Comparable<EnglishDictionary>, Constable, Dictionary
A concise dictionary of common terms in English.
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns true if this dictionary contains the specified word.iterator()Returns an iterator over the words in this dictionary.intsize()Returns the number of words in this dictionary.static EnglishDictionaryReturns the enum constant of this class with the specified name.static EnglishDictionary[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
CONCISE
A concise dictionary of common terms in English.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-
contains
Description copied from interface:DictionaryReturns true if this dictionary contains the specified word.- Specified by:
containsin interfaceDictionary- Parameters:
s- the query word.- Returns:
- true if this dictionary contains the specified word.
-
size
public int size()Description copied from interface:DictionaryReturns the number of words in this dictionary.- Specified by:
sizein interfaceDictionary- Returns:
- the number of words in this dictionary.
-
iterator
Description copied from interface:DictionaryReturns an iterator over the words in this dictionary.- Specified by:
iteratorin interfaceDictionary- Returns:
- the iterator.
-