org.deckfour.xes.model.impl
Class XAttributeMapImpl

java.lang.Object
  extended by java.util.AbstractMap<K,V>
      extended by java.util.HashMap<String,XAttribute>
          extended by org.deckfour.xes.model.impl.XAttributeMapImpl
All Implemented Interfaces:
Serializable, Cloneable, Map<String,XAttribute>, XAttributeMap

public class XAttributeMapImpl
extends HashMap<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
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
 
Nested classes/interfaces inherited from interface java.util.Map
Map.Entry<K,V>
 
Constructor Summary
XAttributeMapImpl()
          Creates a new attribute map.
XAttributeMapImpl(int size)
          Creates a new attribute map.
XAttributeMapImpl(Map<String,XAttribute> template)
          Creates a new attribute map.
 
Method Summary
 Object clone()
          Creates a clone, i.e.
 
Methods inherited from class java.util.HashMap
clear, containsKey, containsValue, entrySet, get, isEmpty, keySet, put, putAll, remove, 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, containsKey, containsValue, entrySet, equals, get, hashCode, isEmpty, keySet, put, putAll, remove, 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(Map<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 Object clone()
Creates a clone, i.e. deep copy, of this attribute map.

Specified by:
clone in interface XAttributeMap
Overrides:
clone in class HashMap<String,XAttribute>
Returns:
An identical clone of the attribute map.