Class AffixedWord.Affix

  • Enclosing class:
    AffixedWord

    public static final class AffixedWord.Affix
    extends java.lang.Object
    An object representing a prefix or a suffix applied to a word stem
    • Field Summary

      Fields 
      Modifier and Type Field Description
      (package private) int affixId  
      private java.lang.String presentableFlag  
    • Constructor Summary

      Constructors 
      Constructor Description
      Affix​(Dictionary dictionary, int affixId)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean equals​(java.lang.Object o)  
      java.lang.String getFlag()  
      int hashCode()  
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
    • Field Detail

      • affixId

        final int affixId
      • presentableFlag

        private final java.lang.String presentableFlag
    • Constructor Detail

      • Affix

        Affix​(Dictionary dictionary,
              int affixId)
    • Method Detail

      • getFlag

        public java.lang.String getFlag()
        Returns:
        the corresponding affix flag as it appears in the *.aff file. Depending on the format, it could be a Unicode character, two ASCII characters, or an integer in decimal form
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object