TreeUtils Class
TreeUtils used to compare Tree.
Can also be used to compare Object structure.
Methods
compare
(
Array
static
-
oldTree
-
newTree
-
diffs
-
pathOldTree
-
pathNewTree
Compare two trees and return list of changes.
oldTree is compared to newTree. The list of changes indicate wath needs to be changed in oldTree to become wqual to the newTree.
Elements inside Trees are compared using their UUID.
The array returned from this method contains objects in the format {status:
Parameters:
Returns:
Array:
Array with diffs between oldTree and newTree.