public class AttributesHelper
extends java.lang.Object
| Constructor and Description |
|---|
AttributesHelper() |
| Modifier and Type | Method and Description |
|---|---|
static java.util.Map<java.lang.String,Variant> |
diff(java.util.Map<java.lang.String,Variant> source,
java.util.Map<java.lang.String,Variant> target)
Generate the difference between two maps
|
static void |
mergeAttributes(java.util.Map<java.lang.String,Variant> target,
java.util.Map<java.lang.String,Variant> change)
merges the difference attributes into the target
|
static void |
mergeAttributes(java.util.Map<java.lang.String,Variant> target,
java.util.Map<java.lang.String,Variant> diff,
boolean initial)
merges the attribute differences.
|
static void |
mergeAttributes(java.util.Map<java.lang.String,Variant> target,
java.util.Map<java.lang.String,Variant> change,
java.util.Map<java.lang.String,Variant> diff)
merges the difference attributes into the target
|
static void |
set(java.util.Map<java.lang.String,Variant> target,
java.util.Map<java.lang.String,Variant> attributes,
java.util.Map<java.lang.String,Variant> diff)
update the target attributes to contain only the requested attributes
|
public static void mergeAttributes(java.util.Map<java.lang.String,Variant> target, java.util.Map<java.lang.String,Variant> change, java.util.Map<java.lang.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(java.util.Map<java.lang.String,Variant> target, java.util.Map<java.lang.String,Variant> change)
target - the attributes to merge the difference inchange - the attributes to changepublic static void mergeAttributes(java.util.Map<java.lang.String,Variant> target, java.util.Map<java.lang.String,Variant> diff, boolean initial)
target - the attributes to merge the difference indiff - the difference attributesinitial - initial flagpublic static void set(java.util.Map<java.lang.String,Variant> target, java.util.Map<java.lang.String,Variant> attributes, java.util.Map<java.lang.String,Variant> diff)
target - the attributes to update the difference toattributes - the new attributes setdiff - the actual difference
Copyright (c) IBH SYSTEMS GmbH and others 2010, 2013.
All rights reserved. This program and the accompanying materials
are made available under the terms of the
Eclipse Public License v1.0