|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface DiffAlgorithm<T>
The general interface for computing diffs between two lists of elements of type T.
Method Summary | |
---|---|
Patch<T> |
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. |
Patch<T> |
diff(T[] original,
T[] revised)
Computes the difference between the original sequence and the revised sequence and returns it as a Patch object. |
Method Detail |
---|
Patch<T> diff(T[] original, T[] revised)
Patch
object.
original
- The original sequence. Must not be null
.revised
- The revised sequence. Must not be null
.
null
.Patch<T> diff(List<T> original, List<T> revised)
Patch
object.
original
- The original sequence. Must not be null
.revised
- The revised sequence. Must not be null
.
null
.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |