Package com.day.util.diff
Class Diff
java.lang.Object
com.day.util.diff.Diff
A class to compare vectors of objects.
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondiff_2
(boolean reverse) Compute the difference between the 2 arrays.
-
Field Details
-
heuristic
Deprecated.When set to true, the comparison uses a heuristic to speed it up. With this heuristic, for files with a constant small density of changes, the algorithm is linear in the file size. -
no_discards
Deprecated.When set to true, the algorithm returns a guaranteed minimal set of changes. This makes things slower, sometimes much slower.
-
-
Constructor Details
-
Diff
Constructor to find differences between two arrays.- Parameters:
a
- left "document"b
- right document
-
-
Method Details
-
diff_2
Compute the difference between the 2 arrays.
-