Class VocabWord

    • Field Detail

      • vocabId

        protected Long vocabId
      • affinityId

        protected Long affinityId
    • Constructor Detail

      • VocabWord

        public VocabWord​(double wordFrequency,
                         @NonNull
                         @NonNull String word)
        Parameters:
        wordFrequency - count of the word
      • VocabWord

        public VocabWord​(double wordFrequency,
                         @NonNull
                         @NonNull String word,
                         long storageId)
      • VocabWord

        public VocabWord()
    • Method Detail

      • getLabel

        public String getLabel()
        Description copied from class: SequenceElement
        This method should return string representation of this SequenceElement, so it can be used for
        Specified by:
        getLabel in class SequenceElement
        Returns:
      • getWord

        public String getWord()
      • setWord

        public void setWord​(String word)
      • equals

        public boolean equals​(Object o)
        Description copied from class: SequenceElement
        Equals method override should be properly implemented for any extended class, otherwise it will be based on label equality
        Overrides:
        equals in class SequenceElement
      • hashCode

        public int hashCode()
        Description copied from class: SequenceElement
        hashCode method override should be properly implemented for any extended class, otherwise it will be based on label hashCode
        Overrides:
        hashCode in class SequenceElement
        Returns:
        hashCode for this SequenceElement