public class AttributesHelper extends Object
| Constructor and Description |
|---|
AttributesHelper() |
| Modifier and Type | Method and Description |
|---|---|
static Map<String,Variant> |
diff(Map<String,Variant> source,
Map<String,Variant> target)
Generate the difference between two maps
|
static void |
mergeAttributes(Map<String,Variant> target,
Map<String,Variant> change)
merges the difference attributes into the target
|
static void |
mergeAttributes(Map<String,Variant> target,
Map<String,Variant> diff,
boolean initial)
merges the attribute differences.
|
static void |
mergeAttributes(Map<String,Variant> target,
Map<String,Variant> change,
Map<String,Variant> diff)
merges the difference attributes into the target
|
static void |
set(Map<String,Variant> target,
Map<String,Variant> attributes,
Map<String,Variant> diff)
update the target attributes to contain only the requested attributes
|
public static void mergeAttributes(Map<String,Variant> target, Map<String,Variant> change, Map<String,Variant> diff)
returns the real changes performed on target in
diff
target - the attributes to merge the difference inchange - the attributes to changediff - output of real changes that were madepublic static void mergeAttributes(Map<String,Variant> target, Map<String,Variant> change)
target - the attributes to merge the difference inchange - the attributes to changepublic static void mergeAttributes(Map<String,Variant> target, Map<String,Variant> diff, boolean initial)
target - the attributes to merge the difference indiff - the difference attributesinitial - initial flagpublic static void set(Map<String,Variant> target, Map<String,Variant> attributes, Map<String,Variant> diff)
target - the attributes to update the difference toattributes - the new attributes setdiff - the actual differenceCopyright © 2016 Eclipse NeoSCADA Project. All rights reserved.