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.ExplicitlySetBmcModelThe 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 SummaryNested Classes Modifier and Type Class Description static classCompareLineResult.Builder
 - 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static CompareLineResult.Builderbuilder()Create a new builder.booleanequals(Object o)StringgetDiffType()The result of the line comparison.StringgetLeftContent()A line from the content on the left.StringgetLeftIndices()A comma delimited set of indices that identify which characters are different from those in the right string.StringgetRightContent()A line from the content on the right.StringgetRightIndices()A comma delimited set of indices that identify which characters are different from those in the left string.inthashCode()CompareLineResult.BuildertoBuilder()StringtoString()StringtoString(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- 
builderpublic static CompareLineResult.Builder builder() Create a new builder.
 - 
toBuilderpublic CompareLineResult.Builder toBuilder() 
 - 
getLeftContentpublic 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
 
 - 
getRightContentpublic 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
 
 - 
getDiffTypepublic 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
 
 - 
getLeftIndicespublic String getLeftIndices() A comma delimited set of indices that identify which characters are different from those in the right string.- Returns:
- the value
 
 - 
getRightIndicespublic String getRightIndices() A comma delimited set of indices that identify which characters are different from those in the left string.- Returns:
- the value
 
 - 
toStringpublic String toString() - Overrides:
- toStringin class- com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
 
 - 
toStringpublic 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
 
 - 
equalspublic boolean equals(Object o) - Overrides:
- equalsin class- com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
 
 - 
hashCodepublic int hashCode() - Overrides:
- hashCodein class- com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
 
 
- 
 
-