Class OverrideMap
java.lang.Object
java.util.AbstractMap<K,V>
java.util.HashMap<String,PropertySet>
com.inductiveautomation.ignition.common.sqltags.model.udt.OverrideMap
- All Implemented Interfaces:
Mergable<OverrideMap>
,Serializable
,Cloneable
,Map<String,
PropertySet>
- Direct Known Subclasses:
OverrideMapDiff
public class OverrideMap
extends HashMap<String,PropertySet>
implements Serializable, Mergable<OverrideMap>
This is a map that connects
Member
's UID to a set of property overrides.- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K extends Object,
V extends Object>, AbstractMap.SimpleImmutableEntry<K extends Object, V extends Object> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
compact()
Removes any mappings that are empty property sets.void
extend
(OverrideMap other) Used for applying inheritance, extends our values with those from other.getOrCreate
(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
Methods inherited from class java.util.AbstractMap
equals, hashCode, toString
-
Constructor Details
-
OverrideMap
public OverrideMap() -
OverrideMap
-
-
Method Details
-
extend
Used for applying inheritance, extends our values with those from other. Doesn't mind if other is null. -
getOrCreate
Gets the property set, creating it for the key if necessary. -
merge
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.
-