Class SpellSuggestionsInfo


  • @API(type=NOT_EXTENDABLE,
         src=PUBLIC)
    public class SpellSuggestionsInfo
    extends java.lang.Object
    Container for spellchecking suggestions information.
    • Constructor Summary

      Constructors 
      Constructor Description
      SpellSuggestionsInfo​(int startOffset, int endOffset, java.lang.String word, java.lang.String[] suggestions)  
    • Constructor Detail

      • SpellSuggestionsInfo

        public SpellSuggestionsInfo​(int startOffset,
                                    int endOffset,
                                    java.lang.String word,
                                    java.lang.String[] suggestions)
        Parameters:
        startOffset - Start offset of the word.
        endOffset - End offset of the word.
        word - The targeted word for suggestions.
        suggestions - List of suggestions.
    • Method Detail

      • getStartOffset

        public int getStartOffset()
        Gets the start offset.
        Returns:
        Returns the start offset.
      • getEndOffset

        public int getEndOffset()
        Gets the end offset.
        Returns:
        Returns the end offset.
      • getWord

        public java.lang.String getWord()
        Returns:
        Returns the word for which suggestions were provided.
      • getSuggestions

        public java.lang.String[] getSuggestions()
        Returns:
        Returns the suggestions.