Package snap.text

Class SpellCheck.Word

java.lang.Object
snap.text.SpellCheck.Word
Enclosing class:
SpellCheck

public static class SpellCheck.Word extends Object
An inner class to represent a misspelled word.
  • Field Details

    • _string

      protected String _string
    • _start

      protected int _start
    • _end

      protected int _end
  • Constructor Details

    • Word

      public Word(String aString, int aStart)
      Constructor for given word at index.
  • Method Details

    • getString

      public String getString()
      Returns the string.
    • getStart

      public int getStart()
      Returns the start index.
    • getEnd

      public int getEnd()
      Returns the end index.
    • getSuggestions

      public List<String> getSuggestions()
      Returns a list of suggestions.
    • toString

      public String toString()
      Returns string representation of word.
      Overrides:
      toString in class Object