Create a ChangeMapImpl
the JSON pointers contained in the change
The array of key-value pairs contained in the change map
The number of entries in the change map
The JSON pointers contained in the change
Determines if this change map contains an entry for a given JSON Pointer
true
if an entry exists, false if not
Returns a view of the portion of this map whose keys are descendants
of pointer
. If pointer
is contained in this map, it
will be included in the result.
changemap of descendant changes
Returns an array of map entries. Each entry is in the form of a key/value object pair.
The key is a JSON Pointer expression, in string form. The value will be parsed from the underlying JSON object.
the entry array
Example:
changeMap.entrySet().forEach(function(entry) {
console.log(entry.key, entry.value);
});
Retrieve a value from this change map, identified by a JSON Pointer.
the change map value, if it exists, otherwise null
Returns a view of the portion of this map whose keys are descendants
or parents of pointer
. If pointer
is contained in
this map, it will be included in the result.
This method can be used to determine whether a structural delta affects a particular part of a JSON value. For example:
if (structuralDelta.removed().intersection("/contact/address").length) {
// The structural delta removes elements that affect '/contact/address'.
}
if (structuralDelta.inserted().intersection("/contact/address").length) {
// The structural delta inserts elements that affect '/contact/address'.
}
changemap of intersection changes
Implementation of the change map