public class ExportDataMapDiffCalculator extends Object
Modifier and Type | Method and Description |
---|---|
static Map<String,Object> |
subtract(Map<String,Object> left,
Map<String,Object> right)
Return all keys from the left that are not included in right or have different value
The rules are:
an object from left is skipped if corresponding object in right exists and is equal
otherwise, if object in left is single value or list or the type in right is different, the value from left is added to the result
if object is a map in both arguments, a result of subtract(left.get(key), right.get(key) is added to the result
|
public static Map<String,Object> subtract(Map<String,Object> left, Map<String,Object> right)
left
- right
- Copyright © 2021 Atlassian Software Systems Pty Ltd. All rights reserved.