org.crosswire.common.diff
Class Difference
java.lang.Object
org.crosswire.common.diff.Difference
public class Difference
- extends Object
Represents a single difference, consisting of an EditType and associated
text.
- Author:
- DM Smith
- See Also:
for license details.
The copyright to this program is held by it's authors.
editType
private EditType editType
- The edit to perform
text
private String text
index
private int index
Difference
public Difference(EditType edit,
String text)
getEditType
public EditType getEditType()
- Returns:
- the EditType
setEditType
public void setEditType(EditType newEditType)
- Parameters:
newEditType
- the EditType to set
getText
public String getText()
- Returns:
- the text
setText
public void setText(String newText)
- Parameters:
newText
- the text to set
getIndex
public int getIndex()
- Returns:
- the index
setIndex
public void setIndex(int newIndex)
- Parameters:
newIndex
- the index to set
appendText
public void appendText(String addText)
- Parameters:
addText
- the text to set
appendText
public void appendText(char addText)
- Parameters:
addText
- the text to set
prependText
public void prependText(String addText)
- Parameters:
addText
- the text to set
prependText
public void prependText(char addText)
- Parameters:
addText
- the text to set
toString
public String toString()
- Overrides:
toString
in class Object
hashCode
public int hashCode()
- Overrides:
hashCode
in class Object
equals
public boolean equals(Object obj)
- Overrides:
equals
in class Object