@Generated(value="OracleSDKGenerator", comments="API Version: 20200601") public final class CompareLineResult extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
The result of a comparison of two lines in the two content input strings.
Note: Objects should always be created or deserialized using the CompareLineResult.Builder
. This model
distinguishes fields that are null
because they are unset from fields that are explicitly
set to null
. This is done in the setter methods of the CompareLineResult.Builder
, which maintain a
set of all explicitly set fields called ExplicitlySetBmcModel.__explicitlySet__
. The hashCode()
and
equals(Object)
methods are implemented to take ExplicitlySetBmcModel.__explicitlySet__
into account.
The constructor, on the other hand, does not set ExplicitlySetBmcModel.__explicitlySet__
(since the
constructor cannot distinguish explicit null
from unset null
).
Modifier and Type | Class and Description |
---|---|
static class |
CompareLineResult.Builder |
Constructor and Description |
---|
CompareLineResult(String leftContent,
String rightContent,
String diffType,
String leftIndices,
String rightIndices)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
static CompareLineResult.Builder |
builder()
Create a new builder.
|
boolean |
equals(Object o) |
String |
getDiffType()
The result of the line comparison.
|
String |
getLeftContent()
A line from the content on the left.
|
String |
getLeftIndices()
A comma delimited set of indices that identify which characters are different from those in
the right string.
|
String |
getRightContent()
A line from the content on the right.
|
String |
getRightIndices()
A comma delimited set of indices that identify which characters are different from those in
the left string.
|
int |
hashCode() |
CompareLineResult.Builder |
toBuilder() |
String |
toString() |
String |
toString(boolean includeByteArrayContents)
Return a string representation of the object.
|
markPropertyAsExplicitlySet, wasPropertyExplicitlySet
@Deprecated @ConstructorProperties(value={"leftContent","rightContent","diffType","leftIndices","rightIndices"}) public CompareLineResult(String leftContent, String rightContent, String diffType, String leftIndices, String rightIndices)
public static CompareLineResult.Builder builder()
Create a new builder.
public CompareLineResult.Builder toBuilder()
public String getLeftContent()
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.
public String getRightContent()
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.
public String getDiffType()
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.
public String getLeftIndices()
A comma delimited set of indices that identify which characters are different from those in the right string.
public String getRightIndices()
A comma delimited set of indices that identify which characters are different from those in the left string.
public String toString()
toString
in class com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
public String toString(boolean includeByteArrayContents)
Return a string representation of the object.
includeByteArrayContents
- true to include the full contents of byte arrayspublic boolean equals(Object o)
equals
in class com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
public int hashCode()
hashCode
in class com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
Copyright © 2016–2023. All rights reserved.