Interface DiffChange.Builder

  • Method Details

    • type

      The type of change for this line. Possible values:

      • CONTEXT – Unchanged line included for surrounding context.

      • ADD – Line added in the after blob.

      • DELETE – Line removed from the before blob.

      Parameters:
      type - The type of change for this line. Possible values:

      • CONTEXT – Unchanged line included for surrounding context.

      • ADD – Line added in the after blob.

      • DELETE – Line removed from the before blob.

      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • type

      The type of change for this line. Possible values:

      • CONTEXT – Unchanged line included for surrounding context.

      • ADD – Line added in the after blob.

      • DELETE – Line removed from the before blob.

      Parameters:
      type - The type of change for this line. Possible values:

      • CONTEXT – Unchanged line included for surrounding context.

      • ADD – Line added in the after blob.

      • DELETE – Line removed from the before blob.

      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • beforeLineNumber

      DiffChange.Builder beforeLineNumber(Integer beforeLineNumber)

      The 1-based line number in the before blob. This field is omitted for ADD lines.

      Parameters:
      beforeLineNumber - The 1-based line number in the before blob. This field is omitted for ADD lines.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • afterLineNumber

      DiffChange.Builder afterLineNumber(Integer afterLineNumber)

      The 1-based line number in the after blob. This field is omitted for DELETE lines.

      Parameters:
      afterLineNumber - The 1-based line number in the after blob. This field is omitted for DELETE lines.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • content

      DiffChange.Builder content(String content)

      The text content of the line, without the trailing newline.

      Parameters:
      content - The text content of the line, without the trailing newline.
      Returns:
      Returns a reference to this object so that method calls can be chained together.