Class CompareLineResult
- java.lang.Object
-
- com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
-
- com.oracle.bmc.loganalytics.model.CompareLineResult
-
@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 theCompareLineResult.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 theCompareLineResult.Builder
, which maintain a set of all explicitly set fields calledCompareLineResult.Builder.__explicitlySet__
. ThehashCode()
andequals(Object)
methods are implemented to take the explicitly set fields into account. The constructor, on the other hand, does not take the explicitly set fields into account (since the constructor cannot distinguish explicit null from unset null).
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
CompareLineResult.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method 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.
-
-
-
Constructor Detail
-
CompareLineResult
@Deprecated @ConstructorProperties({"leftContent","rightContent","diffType","leftIndices","rightIndices"}) public CompareLineResult(String leftContent, String rightContent, String diffType, String leftIndices, String rightIndices)
Deprecated.
-
-
Method Detail
-
builder
public static CompareLineResult.Builder builder()
Create a new builder.
-
toBuilder
public CompareLineResult.Builder toBuilder()
-
getLeftContent
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.
- Returns:
- the value
-
getRightContent
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.
- Returns:
- the value
-
getDiffType
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.
- Returns:
- the value
-
getLeftIndices
public String getLeftIndices()
A comma delimited set of indices that identify which characters are different from those in the right string.- Returns:
- the value
-
getRightIndices
public String getRightIndices()
A comma delimited set of indices that identify which characters are different from those in the left string.- Returns:
- the value
-
toString
public String toString()
- Overrides:
toString
in classcom.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
-
toString
public String toString(boolean includeByteArrayContents)
Return a string representation of the object.- Parameters:
includeByteArrayContents
- true to include the full contents of byte arrays- Returns:
- string representation
-
equals
public boolean equals(Object o)
- Overrides:
equals
in classcom.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classcom.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
-
-