public static class CompareLineResult.Builder extends Object
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
CompareLineResult |
build() |
CompareLineResult.Builder |
copy(CompareLineResult model) |
CompareLineResult.Builder |
diffType(String diffType)
The result of the line comparison.
|
CompareLineResult.Builder |
leftContent(String leftContent)
A line from the content on the left.
|
CompareLineResult.Builder |
leftIndices(String leftIndices)
A comma delimited set of indices that identify which characters are different from those
in the right string.
|
CompareLineResult.Builder |
rightContent(String rightContent)
A line from the content on the right.
|
CompareLineResult.Builder |
rightIndices(String rightIndices)
A comma delimited set of indices that identify which characters are different from those
in the left string.
|
public CompareLineResult.Builder leftContent(String leftContent)
A line from the content on the left. This may be empty if there is no matching line on the left for a line in the right content.
leftContent
- the value to setpublic CompareLineResult.Builder rightContent(String rightContent)
A line from the content on the right. This may be empty if there is no matching line on the right for a line in the left content.
rightContent
- the value to setpublic CompareLineResult.Builder diffType(String diffType)
The result of the line comparison. An empty string means the lines being compared are the same. A pipe, |, means the lines are different, and a caret, > or <, means the line is only found either on the right or the left.
diffType
- the value to setpublic CompareLineResult.Builder leftIndices(String leftIndices)
A comma delimited set of indices that identify which characters are different from those in the right string.
leftIndices
- the value to setpublic CompareLineResult.Builder rightIndices(String rightIndices)
A comma delimited set of indices that identify which characters are different from those in the left string.
rightIndices
- the value to setpublic CompareLineResult build()
public CompareLineResult.Builder copy(CompareLineResult model)
Copyright © 2016–2024. All rights reserved.