Class OverrideMap

    • Nested Class Summary

      • Nested classes/interfaces inherited from class java.util.AbstractMap

        java.util.AbstractMap.SimpleEntry<K extends java.lang.Object,​V extends java.lang.Object>, java.util.AbstractMap.SimpleImmutableEntry<K extends java.lang.Object,​V extends java.lang.Object>
      • Nested classes/interfaces inherited from interface java.util.Map

        java.util.Map.Entry<K extends java.lang.Object,​V extends java.lang.Object>
    • 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
      • Methods inherited from class java.util.AbstractMap

        equals, hashCode, toString
      • Methods inherited from class java.lang.Object

        finalize, getClass, notify, notifyAll, wait, wait, wait
      • Methods inherited from interface java.util.Map

        equals, hashCode
      • Methods inherited from interface com.inductiveautomation.ignition.common.config.Mergable

        merge
    • 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 interface Mergable<OverrideMap>
      • compact

        public void compact()
        Removes any mappings that are empty property sets.