Class 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 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 CompareLineResult.Builder.__explicitlySet__. The hashCode() and equals(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).
    • Method Detail

      • 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 class com.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 class com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel