Package com.inet.jorthodictionaries
Class Book
- java.lang.Object
-
- com.inet.jorthodictionaries.Book
-
class Book extends java.lang.Object
This is the container for the found words.
-
-
Field Summary
Fields Modifier and Type Field Description private int
charCount
private java.util.HashSet
list
private int
titleCount
private int
titleCountLanguage
-
Constructor Summary
Constructors Constructor Description Book()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
addWord(java.lang.String word)
Add a word to the list(package private) int
getCharCount()
The count of the characters of all words(package private) int
getLanguageTitleCount()
Get count of the parsed Wiktionary titles with the right language.(package private) int
getTitleCount()
Get total count of parsed Wiktionary titles.(package private) int
getWordCount()
Get the current Word Count in the dictionary.(package private) java.lang.String[]
getWords()
The list of the words(package private) void
incLanguageTitleCount()
Increment the Count of Wiktionary article in the target language(package private) void
incTitleCount()
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
-
-