Interface Dictionary
- All Known Implementing Classes:
AbstractDictionary
,ISO_LATIN1Dictionary
,US_ASCIIDictionary
,UTF16BEDictionary
,UTF16Dictionary
,UTF16LEDictionary
,UTF8Dictionary
public interface Dictionary
Dictionary is used to store and retrieve a collection of valid words.
- Version:
- Alpha v.0.4
- Author:
- Logan Ferree (Tadukoo)
-
Method Summary
Modifier and TypeMethodDescriptionboolean
addWord
(CharSequence word) Adds the given word to this DictionaryasMap()
boolean
isValidWord
(CharSequence word) boolean
removeWord
(CharSequence word) Removes the given word from this Dictionary
-
Method Details
-
supportedCharset
Charset supportedCharset()- Returns:
- The
Charset
that this Dictionary supports
-
asMap
- Returns:
- The valid words for this Dictionary in a Map
-
isValidWord
- Parameters:
word
- The word to look for in this Dictionary- Returns:
- If the given word is in this Dictionary or not
-
addWord
Adds the given word to this Dictionary- Parameters:
word
- The word to be added to this Dictionary- Returns:
- If the word was added to the Dictionary (or already exists in it)
-
removeWord
Removes the given word from this Dictionary- Parameters:
word
- The word to be removed from this Dictionary- Returns:
- true if the word was removed, or false if it wasn't found
-