Class ExportDataMapDiffCalculator
- java.lang.Object
-
- com.atlassian.bamboo.configuration.external.helpers.ExportDataMapDiffCalculator
-
public class ExportDataMapDiffCalculator extends Object
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method 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
-
-
-
Method Detail
-
subtract
public 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- Parameters:
left
-right
-- Returns:
-
-