Class OverrideMap
- java.lang.Object
-
- java.util.AbstractMap<K,V>
-
- java.util.HashMap<java.lang.String,PropertySet>
-
- com.inductiveautomation.ignition.common.sqltags.model.udt.OverrideMap
-
- All Implemented Interfaces:
Mergable<OverrideMap>
,java.io.Serializable
,java.lang.Cloneable
,java.util.Map<java.lang.String,PropertySet>
- Direct Known Subclasses:
OverrideMapDiff
public class OverrideMap extends java.util.HashMap<java.lang.String,PropertySet> implements java.io.Serializable, Mergable<OverrideMap>
This is a map that connectsMember
's UID to a set of property overrides.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description OverrideMap()
OverrideMap(OverrideMap copy, boolean localOnly)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
compact()
Removes any mappings that are empty property sets.void
extend(OverrideMap other)
Used for applying inheritance, extends our values with those from other.PropertySet
getOrCreate(java.lang.String key)
Gets the property set, creating it for the key if necessary.void
merge(OverrideMap other, boolean localOnly)
Merges the values from other collection into this one.-
Methods inherited from class java.util.HashMap
clear, clone, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entrySet, forEach, get, getOrDefault, isEmpty, keySet, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, size, values
-
-
-
-
Constructor Detail
-
OverrideMap
public OverrideMap()
-
OverrideMap
public OverrideMap(OverrideMap copy, boolean localOnly)
-
-
Method Detail
-
extend
public void extend(OverrideMap other)
Used for applying inheritance, extends our values with those from other. Doesn't mind if other is null.
-
getOrCreate
public PropertySet getOrCreate(java.lang.String key)
Gets the property set, creating it for the key if necessary.
-
merge
public void merge(OverrideMap other, boolean localOnly)
Description copied from interface:Mergable
Merges the values from other collection into this one. Replaces any currently existing value with those from the other set.- Specified by:
merge
in interfaceMergable<OverrideMap>
-
compact
public void compact()
Removes any mappings that are empty property sets.
-
-