Class Book


  • class Book
    extends java.lang.Object
    This is the container for the found words.
    • 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
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • charCount

        private int charCount
      • list

        private java.util.HashSet list
      • titleCount

        private int titleCount
      • titleCountLanguage

        private int titleCountLanguage
    • Constructor Detail

      • Book

        Book()
    • 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