Package com.inet.jorthodictionaries
Class Book
- java.lang.Object
-
- com.inet.jorthodictionaries.Book
-
class Book extends java.lang.ObjectThis is the container for the found words.
-
-
Field Summary
Fields Modifier and Type Field Description private intcharCountprivate java.util.HashSetlistprivate inttitleCountprivate inttitleCountLanguage
-
Constructor Summary
Constructors Constructor Description Book()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidaddWord(java.lang.String word)Add a word to the list(package private) intgetCharCount()The count of the characters of all words(package private) intgetLanguageTitleCount()Get count of the parsed Wiktionary titles with the right language.(package private) intgetTitleCount()Get total count of parsed Wiktionary titles.(package private) intgetWordCount()Get the current Word Count in the dictionary.(package private) java.lang.String[]getWords()The list of the words(package private) voidincLanguageTitleCount()Increment the Count of Wiktionary article in the target language(package private) voidincTitleCount()Increment the Count of Wiktionary article
-
-
-
Method Detail
-
addWord
protected final void addWord(java.lang.String word)
Add a word to the list- Parameters:
word- can not be null
-
incTitleCount
void incTitleCount()
Increment the Count of Wiktionary article
-
incLanguageTitleCount
void incLanguageTitleCount()
Increment the Count of Wiktionary article in the target language
-
getTitleCount
int getTitleCount()
Get total count of parsed Wiktionary titles.- Returns:
- the count
-
getLanguageTitleCount
int getLanguageTitleCount()
Get count of the parsed Wiktionary titles with the right language.- Returns:
- the count
-
getWordCount
int getWordCount()
Get the current Word Count in the dictionary.- Returns:
-
getCharCount
int getCharCount()
The count of the characters of all words- Returns:
- the count
-
getWords
java.lang.String[] getWords()
The list of the words- Returns:
- the list
-
-