LibreOffice Module xmerge (master) 1
|
This is the difference algorithm interface. More...
Public Member Functions | |
Difference[] | computeDiffs (Iterator orgSeq, Iterator modSeq) |
Returns a Difference array. More... | |
This is the difference algorithm interface.
It is an interface so that different algorithms may be plugged-in to actually compute the differences.
NOTE: this code may not be thread safe.
Definition at line 29 of file DiffAlgorithm.java.
Difference[] org.openoffice.xmerge.merger.DiffAlgorithm.computeDiffs | ( | Iterator | orgSeq, |
Iterator | modSeq | ||
) |
Returns a Difference
array.
This method finds out the difference between two sequences.
orgSeq | The original sequence of object. |
modSeq | The modified (or changed) sequence to compare against with the original. |
Difference
array. Implemented in org.openoffice.xmerge.merger.diff.IteratorLCSAlgorithm, and org.openoffice.xmerge.merger.diff.IteratorRowCompare.
Referenced by org.openoffice.xmerge.converter.xml.sxc.DocumentMergerImpl.merge(), and org.openoffice.xmerge.converter.xml.xslt.DocumentMergerImpl.merge().