public class PropertyMap extends HashMap<org.alfresco.service.namespace.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<org.alfresco.service.namespace.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<org.alfresco.service.namespace.QName,Serializable> |
getAddedProperties(Map<org.alfresco.service.namespace.QName,Serializable> before,
Map<org.alfresco.service.namespace.QName,Serializable> after)
Utility method to get properties which were added as part of a change.
|
static org.alfresco.util.Pair<Map<org.alfresco.service.namespace.QName,Serializable>,Map<org.alfresco.service.namespace.QName,Serializable>> |
getBeforeAndAfterMapsForChanges(Map<org.alfresco.service.namespace.QName,Serializable> before,
Map<org.alfresco.service.namespace.QName,Serializable> after)
Utility method to remove unchanged entries from each map.
|
static Map<org.alfresco.service.namespace.QName,Serializable> |
getChangedProperties(Map<org.alfresco.service.namespace.QName,Serializable> before,
Map<org.alfresco.service.namespace.QName,Serializable> after)
Utility method to get properties which were changed (but not added or removed) as part of a change.
|
static Map<org.alfresco.service.namespace.QName,Serializable> |
getRemovedProperties(Map<org.alfresco.service.namespace.QName,Serializable> before,
Map<org.alfresco.service.namespace.QName,Serializable> after)
Utility method to get properties which were removed as part of a change.
|
static Map<org.alfresco.service.namespace.QName,Serializable> |
getUnchangedProperties(Map<org.alfresco.service.namespace.QName,Serializable> before,
Map<org.alfresco.service.namespace.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, values
equals, hashCode, toString
public static final Map<org.alfresco.service.namespace.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 org.alfresco.util.Pair<Map<org.alfresco.service.namespace.QName,Serializable>,Map<org.alfresco.service.namespace.QName,Serializable>> getBeforeAndAfterMapsForChanges(Map<org.alfresco.service.namespace.QName,Serializable> before, Map<org.alfresco.service.namespace.QName,Serializable> after)
before
- the properties before (may be null)after
- the properties after (may be null)public static Map<org.alfresco.service.namespace.QName,Serializable> getAddedProperties(Map<org.alfresco.service.namespace.QName,Serializable> before, Map<org.alfresco.service.namespace.QName,Serializable> after)
before
- the properties before (may be null
).after
- the properties after (may be null
).public static Map<org.alfresco.service.namespace.QName,Serializable> getRemovedProperties(Map<org.alfresco.service.namespace.QName,Serializable> before, Map<org.alfresco.service.namespace.QName,Serializable> after)
before
- the properties before (may be null
).after
- the properties after (may be null
).public static Map<org.alfresco.service.namespace.QName,Serializable> getChangedProperties(Map<org.alfresco.service.namespace.QName,Serializable> before, Map<org.alfresco.service.namespace.QName,Serializable> after)
before
- the properties before (may be null
).after
- the properties after (may be null
).public static Map<org.alfresco.service.namespace.QName,Serializable> getUnchangedProperties(Map<org.alfresco.service.namespace.QName,Serializable> before, Map<org.alfresco.service.namespace.QName,Serializable> after)
before
- the properties before (may be null
).after
- the properties after (may be null
).Copyright © 2005–2017 Alfresco Software. All rights reserved.