public class DiffFragment
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static DiffFragment[] |
EMPTY_ARRAY |
Constructor and Description |
---|
DiffFragment(DiffString text1,
DiffString text2) |
DiffFragment(java.lang.String text1,
java.lang.String text2) |
Modifier and Type | Method and Description |
---|---|
void |
appendText1(DiffString str) |
void |
appendText2(DiffString str) |
DiffString |
getText1() |
DiffString |
getText2() |
boolean |
isChange()
Same as
isModified() , but doesn't require texts checked for null. |
boolean |
isEmpty() |
boolean |
isEqual() |
boolean |
isModified()
Makes sense if both texts are not null
|
boolean |
isOneSide() |
void |
setModified(boolean modified) |
static DiffFragment |
unchanged(DiffString text1,
DiffString text2) |
static DiffFragment |
unchanged(java.lang.String text1,
java.lang.String text2) |
public static DiffFragment[] EMPTY_ARRAY
public DiffFragment(java.lang.String text1, java.lang.String text2)
public DiffFragment(DiffString text1, DiffString text2)
public boolean isEmpty()
public boolean isModified()
public void setModified(boolean modified)
public void appendText1(DiffString str)
public void appendText2(DiffString str)
public DiffString getText1()
public DiffString getText2()
public boolean isChange()
isModified()
, but doesn't require texts checked for null.isModified()
public boolean isEqual()
isModified()
public static DiffFragment unchanged(java.lang.String text1, java.lang.String text2)
public static DiffFragment unchanged(DiffString text1, DiffString text2)
public boolean isOneSide()