Class HunspellWord


  • public class HunspellWord
    extends java.lang.Object
    A dictionary (.dic) entry with its associated flags.
    • Constructor Summary

      Constructors 
      Constructor Description
      HunspellWord()
      Creates a new HunspellWord with no associated flags
      HunspellWord​(char[] flags)
      Constructs a new HunspellWord with the given flags
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      char[] getFlags()
      Returns the flags associated with the word
      boolean hasFlag​(char flag)
      Checks whether the word has the given flag associated with it
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • HunspellWord

        public HunspellWord()
        Creates a new HunspellWord with no associated flags
      • HunspellWord

        public HunspellWord​(char[] flags)
        Constructs a new HunspellWord with the given flags
        Parameters:
        flags - Flags to associate with the word
    • Method Detail

      • hasFlag

        public boolean hasFlag​(char flag)
        Checks whether the word has the given flag associated with it
        Parameters:
        flag - Flag to check whether it is associated with the word
        Returns:
        true if the flag is associated, false otherwise
      • getFlags

        public char[] getFlags()
        Returns the flags associated with the word
        Returns:
        Flags associated with the word