Interface MergeHunk.Builder

    • Method Detail

      • isConflict

        MergeHunk.Builder isConflict​(Boolean isConflict)

        A Boolean value indicating whether a combination of hunks contains a conflict. Conflicts occur when the same file or the same lines in a file were modified in both the source and destination of a merge or pull request. Valid values include true, false, and null. True when the hunk represents a conflict and one or more files contains a line conflict. File mode conflicts in a merge do not set this to true.

        Parameters:
        isConflict - A Boolean value indicating whether a combination of hunks contains a conflict. Conflicts occur when the same file or the same lines in a file were modified in both the source and destination of a merge or pull request. Valid values include true, false, and null. True when the hunk represents a conflict and one or more files contains a line conflict. File mode conflicts in a merge do not set this to true.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • source

        MergeHunk.Builder source​(MergeHunkDetail source)

        Information about the merge hunk in the source of a merge or pull request.

        Parameters:
        source - Information about the merge hunk in the source of a merge or pull request.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • destination

        MergeHunk.Builder destination​(MergeHunkDetail destination)

        Information about the merge hunk in the destination of a merge or pull request.

        Parameters:
        destination - Information about the merge hunk in the destination of a merge or pull request.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • base

        MergeHunk.Builder base​(MergeHunkDetail base)

        Information about the merge hunk in the base of a merge or pull request.

        Parameters:
        base - Information about the merge hunk in the base of a merge or pull request.
        Returns:
        Returns a reference to this object so that method calls can be chained together.