public class PropertyMap
extends java.util.HashMap
This class can be used as a short hand when a class of type Map<QName, Serializable> is required.
| Modifier and Type | Field and Description |
|---|---|
static java.util.Map |
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 java.util.Map |
getAddedProperties(java.util.Map before,
java.util.Map after)
Utility method to get properties which were added as part of a change.
|
static org.alfresco.util.Pair |
getBeforeAndAfterMapsForChanges(java.util.Map before,
java.util.Map after)
Utility method to remove unchanged entries from each map.
|
static java.util.Map |
getChangedProperties(java.util.Map before,
java.util.Map after)
Utility method to get properties which were changed (but not added or removed) as part of a change.
|
static java.util.Map |
getRemovedProperties(java.util.Map before,
java.util.Map after)
Utility method to get properties which were removed as part of a change.
|
static java.util.Map |
getUnchangedProperties(java.util.Map before,
java.util.Map after)
Utility method to get properties which were unchanged as part of a change.
|
clear, clone, containsKey, containsValue, entrySet, get, isEmpty, keySet, put, putAll, remove, size, valuespublic static final java.util.Map 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 getBeforeAndAfterMapsForChanges(java.util.Map before,
java.util.Map after)
before - the properties before (may be null)after - the properties after (may be null)public static java.util.Map getAddedProperties(java.util.Map before,
java.util.Map after)
before - the properties before (may be null).after - the properties after (may be null).public static java.util.Map getRemovedProperties(java.util.Map before,
java.util.Map after)
before - the properties before (may be null).after - the properties after (may be null).public static java.util.Map getChangedProperties(java.util.Map before,
java.util.Map after)
before - the properties before (may be null).after - the properties after (may be null).public static java.util.Map getUnchangedProperties(java.util.Map before,
java.util.Map after)
before - the properties before (may be null).after - the properties after (may be null).Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.