difflib
Class DiffRow
java.lang.Object
difflib.DiffRow
public class DiffRow
- extends Object
Describes the diff row in form [tag, oldLine, newLine) for showing the
difference between two texts
- Author:
- Dmitry Naumenko
DiffRow
public DiffRow(DiffRow.Tag tag,
String oldLine,
String newLine)
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
setOldLine
public void setOldLine(String oldLine)
- Parameters:
oldLine
- the oldLine to set
getNewLine
public String getNewLine()
- Returns:
- the newLine
setNewLine
public void setNewLine(String newLine)
- Parameters:
newLine
- the newLine to set
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
Copyright © 2009-2013. All Rights Reserved.