public interface DiffAlgorithm<T>
| 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. |
default List<Change> |
diff(T[] original,
T[] revised)
Computes the difference between the original sequence and the revised sequence and returns it as a
Patch
object. |
default List<Change> diff(T[] original, T[] revised) throws DiffException
Patch
object.original - The original sequence. Must not be null.revised - The revised sequence. Must not be null.null.DiffExceptionList<Change> diff(List<T> original, List<T> revised) throws DiffException
Patch
object.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.