public static class DiffResponse.Builder extends Object
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
DiffResponse.Builder |
addedLinesCount(Integer addedLinesCount)
The number of lines added in whole difference.
|
DiffResponse.Builder |
areAllChangesIncluded(Boolean areAllChangesIncluded)
Boolean value to indicate if all changes are included in the response.
|
DiffResponse |
build() |
DiffResponse.Builder |
changes(List<DiffResponseEntry> changes)
List of changes in the difference.
|
DiffResponse.Builder |
changeTypeCount(Map<String,Integer> changeTypeCount)
Count of each type of change in difference.
|
DiffResponse.Builder |
commitsAheadCount(Integer commitsAheadCount)
The number of commits source is ahead of target by.
|
DiffResponse.Builder |
commitsBehindCount(Integer commitsBehindCount)
The number of commits source is behind target by.
|
DiffResponse.Builder |
commonCommit(String commonCommit)
The ID of the common commit between source and target.
|
DiffResponse.Builder |
copy(DiffResponse model) |
DiffResponse.Builder |
deletedLinesCount(Integer deletedLinesCount)
The number of lines deleted in whole difference.
|
public DiffResponse.Builder areAllChangesIncluded(Boolean areAllChangesIncluded)
Boolean value to indicate if all changes are included in the response.
areAllChangesIncluded
- the value to setpublic DiffResponse.Builder changeTypeCount(Map<String,Integer> changeTypeCount)
Count of each type of change in difference.
changeTypeCount
- the value to setpublic DiffResponse.Builder commonCommit(String commonCommit)
The ID of the common commit between source and target.
commonCommit
- the value to setpublic DiffResponse.Builder commitsAheadCount(Integer commitsAheadCount)
The number of commits source is ahead of target by.
commitsAheadCount
- the value to setpublic DiffResponse.Builder commitsBehindCount(Integer commitsBehindCount)
The number of commits source is behind target by.
commitsBehindCount
- the value to setpublic DiffResponse.Builder addedLinesCount(Integer addedLinesCount)
The number of lines added in whole difference.
addedLinesCount
- the value to setpublic DiffResponse.Builder deletedLinesCount(Integer deletedLinesCount)
The number of lines deleted in whole difference.
deletedLinesCount
- the value to setpublic DiffResponse.Builder changes(List<DiffResponseEntry> changes)
List of changes in the difference.
changes
- the value to setpublic DiffResponse build()
public DiffResponse.Builder copy(DiffResponse model)
Copyright © 2016–2024. All rights reserved.