|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.crosswire.common.diff.DiffCleanup
public final class DiffCleanup
Various Strategies to cleanup a diff list.
Based on the LGPL Diff_Match_Patch v1.5 javascript of Neil Fraser, Copyright (C) 2006
http://neil.fraser.name/software/diff_match_patch/
The GNU Lesser General Public License for details.| Field Summary | |
|---|---|
private static int |
EDIT_COST
Cost of an empty edit operation in terms of edit characters. |
private static int |
editCost
|
| Constructor Summary | |
|---|---|
private |
DiffCleanup()
Utility class constructor. |
| Method Summary | |
|---|---|
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 |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private static final int EDIT_COST
private static int editCost
| Constructor Detail |
|---|
private DiffCleanup()
| Method Detail |
|---|
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
|
Copyright ยจ 2003-2015 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||