Class DiffRow

java.lang.Object
com.github.difflib.text.DiffRow
All Implemented Interfaces:
Serializable

public final class DiffRow extends Object implements Serializable
Describes the diff row in form [tag, oldLine, newLine) for showing the difference between two texts
See Also:
  • Field Details

  • Constructor Details

  • Method Details

    • getTag

      public DiffRow.Tag getTag()
      Returns:
      the tag
    • setTag

      public void setTag(DiffRow.Tag tag)
      Parameters:
      tag - the tag to set
    • getOldLine

      public String getOldLine()
      Returns:
      the oldLine
    • getNewLine

      public String getNewLine()
      Returns:
      the newLine
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object