Class Differencer
java.lang.Object
com.polarion.qcentre.factbase.delta.Differencer
A generic two-way or three-way differencing engine.
The engine is used by calling one of the findDifferences
methods and passing
in the objects to compare.
The engine calls the following methods on the input objects to perform the compare:
getChildren
: for enumerating the children of an object (if any),contentsEqual
: for comparing the content of leaf objects, that is, objects without children,visit
: for every pair of compared object the compare result is passed in.
getChildren
: tries to apply theIStructureComparator
interface to enumerate the children,contentsEqual
: tries to apply theIStreamContentAccessor
interface to perform a byte-wise content comparison,visit
: creates aDiffNode
for any detected difference between the compared objects and links it under a parent node effectively creating a tree of differences.
-
Method Summary
-
Method Details
-
getInstance
-
findDifferences
-