Class DiffRow

  • All Implemented Interfaces:
    java.io.Serializable

    public final class DiffRow
    extends java.lang.Object
    implements java.io.Serializable
    Describes the diff row in form [tag, oldLine, newLine) for showing the difference between two texts
    See Also:
    Serialized Form
    • Field Detail

      • oldLine

        private final java.lang.String oldLine
      • newLine

        private final java.lang.String newLine
    • Constructor Detail

      • DiffRow

        public DiffRow​(DiffRow.Tag tag,
                       java.lang.String oldLine,
                       java.lang.String newLine)
    • Method Detail

      • getTag

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

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

        public java.lang.String getOldLine()
        Returns:
        the oldLine
      • getNewLine

        public java.lang.String getNewLine()
        Returns:
        the newLine
      • hashCode

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

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object