Package org.deckfour.xes.model.impl
Class XAttributeMapImpl
- java.lang.Object
-
- java.util.AbstractMap<K,V>
-
- java.util.HashMap<java.lang.String,XAttribute>
-
- org.deckfour.xes.model.impl.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
-
-
Constructor Summary
Constructors Constructor Description XAttributeMapImpl()Creates a new attribute map.XAttributeMapImpl(int size)Creates a new attribute map.XAttributeMapImpl(java.util.Map<java.lang.String,XAttribute> template)Creates a new attribute map.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Objectclone()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
-
-
-
-
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:
clonein interfaceXAttributeMap- Overrides:
clonein classjava.util.HashMap<java.lang.String,XAttribute>- Returns:
- An identical clone of the attribute map.
-
-