Interface Highlight.Builder

    • Method Detail

      • beginOffset

        Highlight.Builder beginOffset​(Integer beginOffset)

        The zero-based location in the response string where the highlight starts.

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

        Highlight.Builder endOffset​(Integer endOffset)

        The zero-based location in the response string where the highlight ends.

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

        Highlight.Builder topAnswer​(Boolean topAnswer)

        Indicates whether the response is the best response. True if this is the best response; otherwise, false.

        Parameters:
        topAnswer - Indicates whether the response is the best response. True if this is the best response; otherwise, false.
        Returns:
        Returns a reference to this object so that method calls can be chained together.