Interface Correction.Builder

    • Method Detail

      • beginOffset

        Correction.Builder beginOffset​(Integer beginOffset)

        The zero-based location in the response string or text where the corrected word starts.

        Parameters:
        beginOffset - The zero-based location in the response string or text where the corrected word starts.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • endOffset

        Correction.Builder endOffset​(Integer endOffset)

        The zero-based location in the response string or text where the corrected word ends.

        Parameters:
        endOffset - The zero-based location in the response string or text where the corrected word ends.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • term

        Correction.Builder term​(String term)

        The string or text of a misspelled word in a query.

        Parameters:
        term - The string or text of a misspelled word in a query.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • correctedTerm

        Correction.Builder correctedTerm​(String correctedTerm)

        The string or text of a corrected misspelled word in a query.

        Parameters:
        correctedTerm - The string or text of a corrected misspelled word in a query.
        Returns:
        Returns a reference to this object so that method calls can be chained together.