public enum FragmentSide extends java.lang.Enum<FragmentSide>
Modifier and Type | Method and Description |
---|---|
static FragmentSide |
chooseSide(DiffFragment oneSide) |
protected abstract DiffFragment |
createDiffFragment(DiffString text,
DiffString otherText) |
DiffFragment |
createFragment(DiffString text,
DiffString otherText,
boolean modified) |
static FragmentSide |
fromIndex(int index) |
int |
getIndex() |
int |
getMergeIndex() |
DiffString |
getOtherText(DiffFragment fragment) |
abstract DiffString |
getText(DiffFragment fragment) |
java.lang.IllegalArgumentException |
invalidException() |
abstract FragmentSide |
otherSide() |
static FragmentSide |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static FragmentSide[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final FragmentSide SIDE1
public static final FragmentSide SIDE2
public static FragmentSide[] values()
for (FragmentSide c : FragmentSide.values()) System.out.println(c);
public static FragmentSide valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic DiffFragment createFragment(DiffString text, DiffString otherText, boolean modified)
public abstract DiffString getText(DiffFragment fragment)
public abstract FragmentSide otherSide()
protected abstract DiffFragment createDiffFragment(DiffString text, DiffString otherText)
public int getIndex()
public int getMergeIndex()
public DiffString getOtherText(DiffFragment fragment)
public java.lang.IllegalArgumentException invalidException()
public static FragmentSide chooseSide(DiffFragment oneSide)
public static FragmentSide fromIndex(int index)