Package org.passay.dictionary
Interface Dictionary
-
- All Known Implementing Classes:
BloomFilterDictionary
,JDBCDictionary
,TernaryTreeDictionary
,WordListDictionary
public interface Dictionary
Base interface for all dictionaries.- Author:
- Middleware Services
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description boolean
search(String word)
Returns whether the supplied word exists in the dictionary.long
size()
Returns the number of words in this dictionary
-
-
-
Method Detail
-
search
boolean search(String word)
Returns whether the supplied word exists in the dictionary.- Parameters:
word
- to search for- Returns:
- whether word was found
-
size
long size()
Returns the number of words in this dictionary- Returns:
- total number of words to search
-
-