Package com.github.difflib.text
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- Author:
- Dmitry Naumenko
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classDiffRow.Tag
-
Constructor Summary
Constructors Constructor Description DiffRow(DiffRow.Tag tag, String oldLine, String newLine)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)StringgetNewLine()StringgetOldLine()DiffRow.TaggetTag()inthashCode()voidsetTag(DiffRow.Tag tag)StringtoString()
-
-
-
Constructor Detail
-
DiffRow
public DiffRow(DiffRow.Tag tag, String oldLine, 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 String getOldLine()
- Returns:
- the oldLine
-
getNewLine
public String getNewLine()
- Returns:
- the newLine
-
-