The Diff
class stores the difference between two Haxe dynamic objects first
and second
.
You can later apply
the diff object to first
to obtain second
, or swap
the diff and then
apply
to second
to get first
.
Constructor
new(first:Dynamic, second:Dynamic)
Creates a new Diff
storing the differences between the two objects passed. The differences basically are:
- Additions: Fields present in
second
that are not present infirst
. - Deletions: Fields present in
first
that are not present insecond
. - Changes: Fields whose value has changed between
first
andsecond
.
The class is capable of tracking changes inside arrays.