Package com.softwareag.connectivity
Class NamedMap<K,V>
- java.lang.Object
- 
- java.util.AbstractMap<K,V>
- 
- java.util.HashMap<K,V>
- 
- com.softwareag.connectivity.NamedMap<K,V>
 
 
 
- 
- Type Parameters:
- K-
- V-
 - All Implemented Interfaces:
- java.io.Serializable,- java.lang.Cloneable,- java.util.Map<K,V>
 
 public final class NamedMap<K,V> extends java.util.HashMap<K,V>Extension to HashMap to give the map an event type name. This class is not serializable.- Since:
- 10.1
- See Also:
- Serialized Form
 
- 
- 
Constructor SummaryConstructors Constructor Description NamedMap()Construct an empty Map with a null name.NamedMap(int initialCapacity)Construct a map with the supplied initial capacity and null name.NamedMap(int initialCapacity, float loadFactor)Construct a map with the supplied initial capacity and load factor and null name.NamedMap(java.lang.String name)Construct an empty Map with the supplied event type name.NamedMap(java.lang.String name, int initialCapacity)Construct a map with the supplied name and initial capacity.NamedMap(java.lang.String name, int initialCapacity, float loadFactor)Construct a map with the supplied name, initial capacity and load factor.NamedMap(java.lang.String name, java.util.Map<? extends K,? extends V> map)Construct a map from the supplied name and underlying Map.NamedMap(java.util.Map<? extends K,? extends V> map)Construct a map from the supplied name and null name.
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclear()Clear the map and name.java.lang.Objectclone()booleanequals(java.lang.Object o)java.lang.StringgetName()Get the event type name of the map.inthashCode()voidsetName(java.lang.String name)Set the event type name of the Map.java.lang.StringtoString()
 
- 
- 
- 
Constructor Detail- 
NamedMappublic NamedMap(java.lang.String name) Construct an empty Map with the supplied event type name.- Parameters:
- name- the event type name associated with this map.
 
 - 
NamedMappublic NamedMap(java.lang.String name, int initialCapacity)Construct a map with the supplied name and initial capacity.- Parameters:
- name- the event type name associated with this map.
- initialCapacity- the initial capacity.
 
 - 
NamedMappublic NamedMap(java.lang.String name, int initialCapacity, float loadFactor)Construct a map with the supplied name, initial capacity and load factor.- Parameters:
- name- the event type name associated with this map.
- initialCapacity- the initial capacity.
- loadFactor- the load factor
 
 - 
NamedMappublic NamedMap(java.lang.String name, java.util.Map<? extends K,? extends V> map)Construct a map from the supplied name and underlying Map.- Parameters:
- name- the event type name associated with this map.
- map- the map whose mappings are to be placed in this map
 
 - 
NamedMappublic NamedMap() Construct an empty Map with a null name.
 - 
NamedMappublic NamedMap(int initialCapacity) Construct a map with the supplied initial capacity and null name.- Parameters:
- initialCapacity- the initial capacity.
 
 - 
NamedMappublic NamedMap(int initialCapacity, float loadFactor)Construct a map with the supplied initial capacity and load factor and null name.- Parameters:
- initialCapacity- the initial capacity.
- loadFactor- the load factor
 
 
- 
 - 
Method Detail- 
setNamepublic void setName(java.lang.String name) Set the event type name of the Map.- Parameters:
- name-
 
 - 
getNamepublic java.lang.String getName() Get the event type name of the map. Can return null.- Returns:
- event type name of the map
 
 - 
hashCodepublic int hashCode() 
 - 
toStringpublic java.lang.String toString() 
 - 
equalspublic boolean equals(java.lang.Object o) 
 - 
clearpublic void clear() Clear the map and name.
 
- 
 
-