public class PropertyMap extends HashMap<QName,Serializable>
This class can be used as a short hand when a class of type Map<QName, Serializable> is required.
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>| Modifier and Type | Field and Description |
|---|---|
static Map<QName,Serializable> |
EMPTY_MAP
A static empty map to us when having to deal with nulls
|
| Constructor and Description |
|---|
PropertyMap() |
PropertyMap(int initialCapacity) |
PropertyMap(int initialCapacity,
float loadFactor) |
| Modifier and Type | Method and Description |
|---|---|
static Map<QName,Serializable> |
getAddedProperties(Map<QName,Serializable> before,
Map<QName,Serializable> after)
Utility method to get properties which were added as part of a change.
|
static Pair<Map<QName,Serializable>,Map<QName,Serializable>> |
getBeforeAndAfterMapsForChanges(Map<QName,Serializable> before,
Map<QName,Serializable> after)
Utility method to remove unchanged entries from each map.
|
static Map<QName,Serializable> |
getChangedProperties(Map<QName,Serializable> before,
Map<QName,Serializable> after)
Utility method to get properties which were changed (but not added or removed) as part of a change.
|
static Map<QName,Serializable> |
getRemovedProperties(Map<QName,Serializable> before,
Map<QName,Serializable> after)
Utility method to get properties which were removed as part of a change.
|
static Map<QName,Serializable> |
getUnchangedProperties(Map<QName,Serializable> before,
Map<QName,Serializable> after)
Utility method to get properties which were unchanged as part of a change.
|
clear, clone, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entrySet, forEach, get, getOrDefault, isEmpty, keySet, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, size, valuesequals, hashCode, toStringpublic static final Map<QName,Serializable> EMPTY_MAP
public PropertyMap(int initialCapacity,
float loadFactor)
HashMap.HashMap(int, float)public PropertyMap(int initialCapacity)
HashMap.HashMap(int)public PropertyMap()
HashMap.HashMap()public static Pair<Map<QName,Serializable>,Map<QName,Serializable>> getBeforeAndAfterMapsForChanges(Map<QName,Serializable> before, Map<QName,Serializable> after)
before - the properties before (may be null)after - the properties after (may be null)public static Map<QName,Serializable> getAddedProperties(Map<QName,Serializable> before, Map<QName,Serializable> after)
before - the properties before (may be null).after - the properties after (may be null).public static Map<QName,Serializable> getRemovedProperties(Map<QName,Serializable> before, Map<QName,Serializable> after)
before - the properties before (may be null).after - the properties after (may be null).public static Map<QName,Serializable> getChangedProperties(Map<QName,Serializable> before, Map<QName,Serializable> after)
before - the properties before (may be null).after - the properties after (may be null).public static Map<QName,Serializable> getUnchangedProperties(Map<QName,Serializable> before, Map<QName,Serializable> after)
before - the properties before (may be null).after - the properties after (may be null).Copyright © 2005–2021 Alfresco Software. All rights reserved.