Class XAttributeMapImpl

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Cloneable, java.util.Map<java.lang.String,​XAttribute>, XAttributeMap

    public class XAttributeMapImpl
    extends java.util.HashMap<java.lang.String,​XAttribute>
    implements XAttributeMap
    Memory-based implementation of the XAttributeMap interface.
    Author:
    Christian W. Guenther (christian@deckfour.org)
    See Also:
    Serialized Form
    • 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
      java.lang.Object clone()
      Creates a clone, i.e.
      • Methods inherited from class java.util.HashMap

        clear, 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

        clear, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entrySet, equals, forEach, get, getOrDefault, hashCode, isEmpty, keySet, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, size, values
    • Constructor Detail

      • XAttributeMapImpl

        public XAttributeMapImpl()
        Creates a new attribute map.
      • XAttributeMapImpl

        public XAttributeMapImpl​(int size)
        Creates a new attribute map.
        Parameters:
        size - Initial size of the map.
      • XAttributeMapImpl

        public XAttributeMapImpl​(java.util.Map<java.lang.String,​XAttribute> template)
        Creates a new attribute map.
        Parameters:
        template - Copy the contents of this attribute map to the new attrribute map.
    • Method Detail

      • clone

        public java.lang.Object clone()
        Creates a clone, i.e. deep copy, of this attribute map.
        Specified by:
        clone in interface XAttributeMap
        Overrides:
        clone in class java.util.HashMap<java.lang.String,​XAttribute>
        Returns:
        An identical clone of the attribute map.