public final class DiffCleanup extends Object
The GNU Lesser General Public License for details.
Modifier and Type | Field and Description |
---|---|
private static int |
EDIT_COST
Cost of an empty edit operation in terms of edit characters.
|
private static int |
editCost |
Modifier | Constructor and Description |
---|---|
private |
DiffCleanup()
Utility class constructor.
|
Modifier and Type | Method and Description |
---|---|
static void |
cleanupEfficiency(List<Difference> diffs)
Reduce the number of edits by eliminating operationally trivial
equalities.
|
static void |
cleanupMerge(List<Difference> diffs)
Reorder and merge like edit sections.
|
static void |
cleanupSemantic(List<Difference> diffs)
Reduce the number of edits by eliminating semantically trivial
equalities.
|
static void |
setEditCost(int newEditCost)
Set the edit cost for efficiency
|
private static final int EDIT_COST
private static int editCost
public static void cleanupSemantic(List<Difference> diffs)
diffs
- List of Difference objectspublic static void cleanupEfficiency(List<Difference> diffs)
diffs
- List of Difference objectspublic static void cleanupMerge(List<Difference> diffs)
diffs
- List of Difference objectspublic static void setEditCost(int newEditCost)
newEditCost
- the edit cost