public final class MyersDiff<T> extends Object implements DiffAlgorithm<T>
| Constructor and Description |
|---|
MyersDiff() |
MyersDiff(BiPredicate<T,T> equalizer) |
| Modifier and Type | Method and Description |
|---|---|
List<Change> |
diff(List<T> original,
List<T> revised)
Computes the difference between the original sequence and the revised sequence and returns it as a
Patch
object. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitdiffpublic MyersDiff()
public MyersDiff(BiPredicate<T,T> equalizer)
public List<Change> diff(List<T> original, List<T> revised) throws DiffException
Patch
object.
Return empty diff if get the error while procession the difference.diff in interface DiffAlgorithm<T>original - The original sequence. Must not be null.revised - The revised sequence. Must not be null.null.DiffExceptionCopyright © 2009–2017 java-diff-utils. All rights reserved.